Skip to content

The only downloader you need. 下载器的集大成者。

feat(ci): SignPath 签名 Inno Setup installer

XiaoYouChRf31c18431359
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index b85de8d6..57ec99f3 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -153,7 +153,7 @@ jobs:
name: Ghost-Downloader-v${{ env.VERSION }}-Windows-${{ matrix.architecture }}-Unsigned
path: dist/Ghost-Downloader-3-Unsigned.dist
- - name: Sign
+ - name: Sign binaries
if: ${{ github.event.inputs.sign_artifact == 'true' }}
uses: signpath/github-action-submit-signing-request@v2
with:
@@ -161,6 +161,7 @@ jobs:
organization-id: '${{ secrets.SIGNPATH_ORGANIZATION_ID }}'
project-slug: 'Ghost-Downloader-3'
signing-policy-slug: 'release-signing'
+ artifact-configuration-slug: 'binaries'
github-artifact-id: '${{ steps.upload-unsigned-artifact.outputs.artifact-id }}'
wait-for-completion: true
output-artifact-directory: 'dist/Ghost-Downloader-3.dist'
@@ -177,6 +178,27 @@ jobs:
with:
path: scripts/Ghost-Downloader-3.iss
+ - name: Upload unsigned installer
+ if: ${{ github.event.inputs.sign_artifact == 'true' && (github.event.inputs.create_release == 'true' || github.event.inputs.package_installer == 'true') }}
+ id: upload-unsigned-installer
+ uses: actions/upload-artifact@v7
+ with:
+ name: Ghost-Downloader-v${{ env.VERSION }}-Windows-${{ matrix.architecture }}-Installer-Unsigned
+ path: dist/Ghost-Downloader-v${{ env.VERSION }}-Windows-Setup.exe
+
+ - name: Sign installer
+ if: ${{ github.event.inputs.sign_artifact == 'true' && (github.event.inputs.create_release == 'true' || github.event.inputs.package_installer == 'true') }}
+ uses: signpath/github-action-submit-signing-request@v2
+ with:
+ api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
+ organization-id: '${{ secrets.SIGNPATH_ORGANIZATION_ID }}'
+ project-slug: 'Ghost-Downloader-3'
+ signing-policy-slug: 'release-signing'
+ artifact-configuration-slug: 'installer'
+ github-artifact-id: '${{ steps.upload-unsigned-installer.outputs.artifact-id }}'
+ wait-for-completion: true
+ output-artifact-directory: 'dist'
+
- name: Rename Installer
if: ${{ github.event.inputs.create_release == 'false' && github.event.inputs.package_installer == 'true' }}
shell: pwsh