Skip to content

Commit 00fac5e

Browse files
committed
update package CI/CD to sign the Windows Installer using SignPath
1 parent 5342994 commit 00fac5e

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/package.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,29 @@ jobs:
318318
cargo wix --no-build --nocapture --target ${{ matrix.target }}
319319
Move-Item -Path target\wix\sniffnet*.msi -Destination .\artifacts\Sniffnet_Windows_${{ matrix.arch }}.msi
320320
321-
- name: Upload package artifacts
321+
- name: Upload unsigned package artifacts
322+
id: upload-unsigned-artifact
323+
uses: actions/upload-artifact@v4
324+
with:
325+
name: msi-${{ matrix.arch }}
326+
path: artifacts/
327+
if-no-files-found: error
328+
329+
- name: Sign package artifacts
330+
uses: signpath/github-action-submit-signing-request@v1.1
331+
with:
332+
api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
333+
organization-id: '3b533e02-73c3-4908-a018-d09a34498a6a'
334+
project-slug: 'sniffnet'
335+
signing-policy-slug: 'test-signing'
336+
github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
337+
wait-for-completion: true
338+
output-artifact-directory: './artifacts'
339+
340+
- name: Upload signed package artifacts (overwrite unsigned)
322341
uses: actions/upload-artifact@v4
323342
with:
324343
name: msi-${{ matrix.arch }}
325344
path: artifacts/
326345
if-no-files-found: error
346+
overwrite: true

0 commit comments

Comments
 (0)