Skip to content

Commit 41ed718

Browse files
authored
feat(ci): add Windows signing process for executable in build workflow (#3417)
1 parent d66dff6 commit 41ed718

File tree

2 files changed

+29
-0
lines changed

2 files changed

+29
-0
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,31 @@ jobs:
8383
subject-path: "./spicetify${{ matrix.os == 'windows' && '.exe' || '' }}"
8484
subject-name: "spicetify v${{ env.TAG }} (${{ matrix.os }}, ${{ (matrix.os == 'windows' && matrix.arch == 'amd64' && 'x64') || (matrix.os == 'windows' && matrix.arch == '386' && 'x32') || matrix.arch }})"
8585

86+
- name: Upload Artifact for Signing
87+
if: env.IS_WIN == 'true'
88+
id: upload-artifact-for-signing
89+
uses: actions/upload-artifact@v4
90+
with:
91+
name: spicetify-${{ env.TAG }}-${{ matrix.os }}-${{ (matrix.arch == 'amd64' && 'x64') || (matrix.arch == 'arm64' && 'arm64') || 'x32' }}-unsigned
92+
path: ./spicetify.exe
93+
94+
- name: Sign Windows Executable
95+
if: env.IS_WIN == 'true'
96+
uses: signpath/github-action-submit-signing-request@v1
97+
with:
98+
api-token: ${{ secrets.SIGNPATH_API_TOKEN }}
99+
organization-id: ${{ secrets.SIGNPATH_ORG_ID }}
100+
project-slug: "cli"
101+
signing-policy-slug: "release-signing"
102+
github-artifact-id: ${{ steps.upload-artifact-for-signing.outputs.artifact-id }}
103+
wait-for-completion: true
104+
output-artifact-directory: "./signed"
105+
106+
- name: Copy Signed Windows Executable
107+
if: env.IS_WIN == 'true'
108+
run: |
109+
cp ./signed/spicetify.exe ./spicetify.exe
110+
86111
- name: 7z - .tar
87112
if: env.IS_UNIX == 'true'
88113
uses: edgarrc/action-7z@v1

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ Supports Windows, MacOS and Linux.
2727
- [Installation](https://spicetify.app/docs/getting-started)
2828
- [Basic Usage](https://spicetify.app/docs/getting-started#basic-usage)
2929
- [FAQ](https://spicetify.app/docs/faq)
30+
31+
### Code Signing Policy
32+
33+
Free code signing provided by [SignPath.io](https://signpath.io), certificate by [SignPath Foundation](https://signpath.org/).

0 commit comments

Comments
 (0)