Skip to content

Commit fdbe4f7

Browse files
committed
Standardization 2.0
1 parent 4dcfe44 commit fdbe4f7

19 files changed

+227
-151
lines changed

.github/workflows/publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish to VS Marketplace
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
publish:
8+
runs-on: windows-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: 1. Download artifact
14+
id: download-artifact
15+
uses: dawidd6/action-download-artifact@v2
16+
with:
17+
github_token: ${{ secrets.GH_SECRET }}
18+
workflow: release_build_and_deploy.yml
19+
workflow_conclusion: success
20+
21+
- name: 2. Parse Artifact Manifest
22+
id: artifact_manifest
23+
uses: ActionsTools/read-json-action@main
24+
with:
25+
file_path: ./artifact/CodingWithCalvin.BetterUserSecrets.info
26+
27+
- name: 3. Create Tag & Release
28+
uses: ncipollo/[email protected]
29+
with:
30+
artifacts: ./artifact/CodingWithCalvin.BetterUserSecrets.vsix
31+
generateReleaseNotes: true
32+
makeLatest: true
33+
token: ${{ secrets.GH_SECRET }}
34+
commit: ${{ steps.artifact_manifest.outputs.sha }}
35+
tag: ${{ steps.artifact_manifest.outputs.version }}
36+
37+
- name: 4. Publish Release to Marketplace
38+
if: success()
39+
uses: CodingWithCalvin/GHA-VSMarketplacePublisher@v1
40+
with:
41+
marketplace-pat: ${{ secrets.VS_PAT }}
42+
publish-manifest-path: ./resources/extension.manifest.json
43+
vsix-path: ./artifact/CodingWithCalvin.BetterUserSecrets.vsix
44+
45+
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: 'Build and Deploy'
2+
3+
on:
4+
workflow_dispatch:
5+
pull_request:
6+
types: [opened, reopened]
7+
push:
8+
branches:
9+
- main
10+
tags-ignore:
11+
- '[0-9]+.[0-9]+.[0-9]+.[0-9]+'
12+
13+
jobs:
14+
Release-Build-and-Deploy:
15+
runs-on: windows-latest
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- uses: microsoft/setup-msbuild@v2
20+
- uses: nuget/setup-nuget@v2
21+
22+
- name: 1. Versioning Release
23+
id: step-version
24+
uses: CodingWithCalvin/GHA-VSVsixVersioner@v1
25+
with:
26+
extension-manifest-file: 'src/CodingWithCalvin.BetterUserSecrets/source.extension.vsixmanifest'
27+
extension-source-file: 'src/CodingWithCalvin.BetterUserSecrets/source.extension.cs'
28+
29+
- name: 2. Restoring Packages
30+
run: nuget restore src/CodingWithCalvin.BetterUserSecrets.sln
31+
32+
- name: 3. Building Project
33+
run: msbuild 'src/CodingWithCalvin.BetterUserSecrets/CodingWithCalvin.BetterUserSecrets.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
34+
35+
- name: 4. Create Information File
36+
uses: jsdaniell/[email protected]
37+
with:
38+
name: 'src/CodingWithCalvin.BetterUserSecrets/bin/x64/Release/CodingWithCalvin.BetterUserSecrets.info'
39+
json: '{"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
40+
41+
- name: 5. Publishing Build Artifact
42+
uses: actions/upload-artifact@v4
43+
with:
44+
path: |
45+
src/CodingWithCalvin.BetterUserSecrets/bin/x64/Release/CodingWithCalvin.BetterUserSecrets.info
46+
src/CodingWithCalvin.BetterUserSecrets/bin/x64/Release/CodingWithCalvin.BetterUserSecrets.vsix

BetterUserSecrets.sln

Lines changed: 0 additions & 25 deletions
This file was deleted.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Better User Secrets
22

3+
A Visual Studio extension that adds a right-click context menu command that allows you to open manage your local user secrets for any project type - not just Web projects, which is the default Visual Studio behavior.
4+
35
## License
46
[![License - MIT](https://img.shields.io/github/license/CodingWithCalvin/VS-BetterUserSecrets?style=for-the-badge)](https://img.shields.io/github/license/CodingWithCalvin/VS-BetterUserSecrets?style=for-the-badge)
57

extension.manifest.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

resources/extension.manifest.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "http://json.schemastore.org/vsix-publish",
3+
"categories": [ "coding", "other", "programming languages"],
4+
"identity": {
5+
"internalName": "VS-BetterUserSecrets"
6+
},
7+
"overview": "README.md",
8+
"publisher": "CodingWithCalvin"
9+
}
File renamed without changes.
File renamed without changes.

src/BetterUserSecretsPackage.cs

Lines changed: 0 additions & 42 deletions
This file was deleted.
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 17
4+
VisualStudioVersion = 17.9.34902.65
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CodingWithCalvin.BetterUserSecrets", "CodingWithCalvin.BetterUserSecrets\CodingWithCalvin.BetterUserSecrets.csproj", "{FFBBD8F1-339C-4E5B-8809-D44F50EA6C7F}"
7+
EndProject
8+
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{55703CA5-B1C0-4D5F-9296-91F266C7B93D}"
9+
ProjectSection(SolutionItems) = preProject
10+
..\resources\extension.manifest.json = ..\resources\extension.manifest.json
11+
..\.github\workflows\publish.yml = ..\.github\workflows\publish.yml
12+
..\README.md = ..\README.md
13+
..\.github\workflows\release_build_and_deploy.yml = ..\.github\workflows\release_build_and_deploy.yml
14+
EndProjectSection
15+
EndProject
16+
Global
17+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
18+
Debug|x64 = Debug|x64
19+
Release|x64 = Release|x64
20+
EndGlobalSection
21+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
22+
{FFBBD8F1-339C-4E5B-8809-D44F50EA6C7F}.Debug|x64.ActiveCfg = Debug|x64
23+
{FFBBD8F1-339C-4E5B-8809-D44F50EA6C7F}.Debug|x64.Build.0 = Debug|x64
24+
{FFBBD8F1-339C-4E5B-8809-D44F50EA6C7F}.Release|x64.ActiveCfg = Release|x64
25+
{FFBBD8F1-339C-4E5B-8809-D44F50EA6C7F}.Release|x64.Build.0 = Release|x64
26+
EndGlobalSection
27+
GlobalSection(SolutionProperties) = preSolution
28+
HideSolutionNode = FALSE
29+
EndGlobalSection
30+
GlobalSection(ExtensibilityGlobals) = postSolution
31+
SolutionGuid = {139525B3-D784-4615-A2BE-8CB5814B331D}
32+
EndGlobalSection
33+
EndGlobal

0 commit comments

Comments
 (0)