77 push :
88 branches :
99 - main
10- tags-ignore :
11- - ' [0-9]+.[0-9]+.[0-9]+.[0-9]+'
1210
1311jobs :
1412 Release-Build-and-Deploy :
@@ -26,21 +24,29 @@ jobs:
2624 extension-manifest-file : ' src/CodingWithCalvin.OpenInNotepadPlusPlus/source.extension.vsixmanifest'
2725 extension-source-file : ' src/CodingWithCalvin.OpenInNotepadPlusPlus/source.extension.cs'
2826
29- - name : 2. Restoring Packages
30- run : nuget restore ./src/CodingWithCalvin.OpenInNotepadPlusPlus.sln
27+ - name : 2. Inject Honeycomb API Key
28+ run : |
29+ $file = 'src/CodingWithCalvin.OpenInNotepadPlusPlus/HoneycombConfig.cs'
30+ $content = Get-Content $file -Raw
31+ $content = $content -replace 'PLACEHOLDER', '${{ secrets.HONEYCOMB_API_KEY }}'
32+ Set-Content $file $content
33+ shell : pwsh
3134
32- - name : 3. Building Project
33- run : msbuild ' src/CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj' /p:configuration='Release' /p:platform='x64' /p:DeployExtension=False
35+ - name : 3. Restoring Packages
36+ run : nuget restore ./ src/CodingWithCalvin.OpenInNotepadPlusPlus.slnx
3437
35- - name : 4. Create Information File
38+ - name : 4. Building Project
39+ run : msbuild 'src/CodingWithCalvin.OpenInNotepadPlusPlus/CodingWithCalvin.OpenInNotepadPlusPlus.csproj' /p:configuration='Release' /p:platform='Any CPU' /p:DeployExtension=False
40+
41+ - name : 5. Create Information File
3642 uses : jsdaniell/create-json@v1.2.3
3743 with :
38- name : ' src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/ Release/CodingWithCalvin.OpenInNotepadPlusPlus.info'
44+ name : ' src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info'
3945 json : ' {"sha":"${{ github.sha }}", "version":"${{ steps.step-version.outputs.version }}"}'
40-
41- - name : 5 . Publishing Build Artifact
46+
47+ - name : 6 . Publishing Build Artifact
4248 uses : actions/upload-artifact@v4
4349 with :
4450 path : |
45- src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/ Release/CodingWithCalvin.OpenInNotepadPlusPlus.info
46- src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/x64/ Release/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
51+ src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.info
52+ src/CodingWithCalvin.OpenInNotepadPlusPlus/bin/Release/CodingWithCalvin.OpenInNotepadPlusPlus.vsix
0 commit comments