Skip to content

Commit ce73742

Browse files
committed
Sign installer
1 parent 36a82c9 commit ce73742

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

.github/workflows/dotnet-release.yml

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ jobs:
3131
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_unsigned.zip
3232
asset_content_type: application/zip
3333

34-
- uses: signpath/[email protected]
34+
- name: Sign with Signpath
35+
uses: signpath/[email protected]
3536
with:
3637
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
3738
organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889'
@@ -81,6 +82,38 @@ jobs:
8182
with:
8283
upload_url: ${{ github.event.release.upload_url }}
8384
asset_path: Installer/Installer.msi
84-
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_installer.msi
85+
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_installer_unsigned.msi
8586
asset_content_type: application/msi
8687

88+
89+
- name: Upload for signing
90+
id: upload
91+
uses: actions/upload-artifact@v4
92+
with:
93+
path: Installer/Installer.msi
94+
- name: Sign with Signpath
95+
uses: signpath/[email protected]
96+
with:
97+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
98+
organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889'
99+
project-slug: 'PasteIntoFile'
100+
signing-policy-slug: 'test-signing'
101+
artifact-configuration-slug: 'installer-zip'
102+
github-artifact-id: '${{ steps.upload.outputs.artifact-id }}'
103+
wait-for-completion: true
104+
output-artifact-directory: 'signing_result'
105+
- name: Rename signed artifact
106+
run: |
107+
ls signing_result
108+
mv signing_result/*.msi signing_result/installer.msi
109+
- name: Upload signed release artifact
110+
uses: actions/upload-release-asset@v1
111+
env:
112+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
113+
with:
114+
upload_url: ${{ github.event.release.upload_url }}
115+
asset_path: signing_result/installer.msi
116+
asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_installer_signed.msi
117+
asset_content_type: application/msi
118+
119+

0 commit comments

Comments
 (0)