|
31 | 31 | asset_name: PasteIntoFile_${{ github.event.release.tag_name }}_portable_unsigned.zip
|
32 | 32 | asset_content_type: application/zip
|
33 | 33 |
|
34 |
| - - uses: signpath/[email protected] |
| 34 | + - name: Sign with Signpath |
| 35 | + |
35 | 36 | with:
|
36 | 37 | api-token: '${{ secrets.SIGNPATH_API_TOKEN }}'
|
37 | 38 | organization-id: '030bee06-17be-4a2a-a788-9efdbd14a889'
|
|
81 | 82 | with:
|
82 | 83 | upload_url: ${{ github.event.release.upload_url }}
|
83 | 84 | 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 |
85 | 86 | asset_content_type: application/msi
|
86 | 87 |
|
| 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 | + |
| 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