1919 configuration : Release
2020 flavor : Portable
2121 artifact : release_artifact_portable
22+
2223 - name : Create zip
2324 run : Compress-Archive -Path ${{steps.build.outputs.path}}/* -Destination release_artifact_portable_unsigned.zip
25+
2426 - name : Upload release artifact
2527 uses : actions/upload-release-asset@v1
2628 env :
3133 asset_name : PasteIntoFile_${{ github.event.release.tag_name }}_portable_unsigned.zip
3234 asset_content_type : application/zip
3335
34- - uses : signpath/github-action-submit-signing-request@v1.1
36+ - name : Sign with Signpath
37+ uses : signpath/github-action-submit-signing-request@v1.1
3538 with :
3639 api-token : ' ${{ secrets.SIGNPATH_API_TOKEN }}'
3740 organization-id : ' 030bee06-17be-4a2a-a788-9efdbd14a889'
4144 github-artifact-id : ' ${{ steps.build.outputs.artifact-id }}'
4245 wait-for-completion : true
4346 output-artifact-directory : ' signing_result'
47+
4448 - name : Create zip
4549 run : Compress-Archive -Path signing_result/* -Destination release_artifact_portable_signed.zip
50+
4651 - name : Upload signed release artifact
4752 uses : actions/upload-release-asset@v1
4853 env :
@@ -58,29 +63,62 @@ jobs:
5863 steps :
5964 - name : Checkout
6065 uses : actions/checkout@v4
66+
6167 - name : Build program executable
6268 id : build
6369 uses : ./.github/build
6470 with :
6571 configuration : Release
6672 flavor : Installer
73+
6774 - name : Add WiX toolkit to PATH
6875 shell : bash
6976 run : echo "${WIX}bin" >> $GITHUB_PATH
77+
7078 - name : Build MSI file with WiX toolchain
7179 run : |
7280 cd Installer
7381 heat dir ../${{steps.build.outputs.path}} -dr INSTALLFOLDER -ag -cg ReleaseFragment -ke -srd -sfrag -nologo -pog:Binaries -pog:Documents -pog: Satellites -pog:Sources -pog:Content -t releaseFiles.xslt -out releaseFiles.wxs
7482 candle releaseFiles.wxs
7583 candle PasteIntoFile.wxs
7684 light -b ../${{steps.build.outputs.path}} releaseFiles.wixobj PasteIntoFile.wixobj -ext WixNetFxExtension -out Installer.msi
85+
7786 - name : Upload release artifact
7887 uses : actions/upload-release-asset@v1
7988 env :
8089 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8190 with :
8291 upload_url : ${{ github.event.release.upload_url }}
8392 asset_path : Installer/Installer.msi
84- asset_name : PasteIntoFile_${{ github.event.release.tag_name }}_installer .msi
93+ asset_name : PasteIntoFile_${{ github.event.release.tag_name }}_installer_unsigned .msi
8594 asset_content_type : application/msi
8695
96+
97+ - name : Upload artifact for signing
98+ id : upload
99+ uses : actions/upload-artifact@v4
100+ with :
101+ path : Installer/Installer.msi
102+
103+ - name : Sign with Signpath
104+ uses : signpath/github-action-submit-signing-request@v1.1
105+ with :
106+ api-token : ' ${{ secrets.SIGNPATH_API_TOKEN }}'
107+ organization-id : ' 030bee06-17be-4a2a-a788-9efdbd14a889'
108+ project-slug : ' PasteIntoFile'
109+ signing-policy-slug : ' test-signing'
110+ artifact-configuration-slug : ' installer-zip'
111+ github-artifact-id : ' ${{ steps.upload.outputs.artifact-id }}'
112+ wait-for-completion : true
113+ output-artifact-directory : ' signing_result'
114+
115+ - name : Upload signed release artifact
116+ uses : actions/upload-release-asset@v1
117+ env :
118+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
119+ with :
120+ upload_url : ${{ github.event.release.upload_url }}
121+ asset_path : signing_result/Installer.msi
122+ asset_name : PasteIntoFile_${{ github.event.release.tag_name }}_installer_signed.msi
123+ asset_content_type : application/msi
124+
0 commit comments