mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-07 12:24:58 +10:00
signpath
This commit is contained in:
@@ -17,7 +17,8 @@ on:
|
||||
- release-signing
|
||||
|
||||
permissions:
|
||||
actions: read
|
||||
# write is needed only to delete the unsigned installer once SignPath has fetched it
|
||||
actions: write
|
||||
contents: read
|
||||
|
||||
env:
|
||||
@@ -101,6 +102,15 @@ jobs:
|
||||
wait-for-completion: true
|
||||
output-artifact-directory: signed
|
||||
|
||||
# SignPath can only fetch the installer from a GitHub artifact, so the unsigned upload cannot
|
||||
# be skipped; it is deleted as soon as signing is over, whether or not signing succeeded.
|
||||
- name: Delete unsigned installer artifact
|
||||
if: always() && steps.upload-unsigned-installer.outputs.artifact-id != ''
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
ARTIFACT_ID: ${{ steps.upload-unsigned-installer.outputs.artifact-id }}
|
||||
run: gh api -X DELETE "repos/${GITHUB_REPOSITORY}/actions/artifacts/${ARTIFACT_ID}"
|
||||
|
||||
- name: Verify signed installer
|
||||
run: |
|
||||
python3 diylc/diylc-swing/deploy/win/signpath/is-signed.py signed/diylc-setup.exe
|
||||
|
||||
Reference in New Issue
Block a user