Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Windows code signing #390

Merged
merged 1 commit into from
Dec 14, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 27 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,45 @@ jobs:
- uses: nuget/setup-nuget@v1

- uses: actions/checkout@v3

- name: Sign resource binaries
uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.WINDOWS_CERTIFICATE }}'
password: '${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}'
folder: './windows'
recursive: true

- name: Build
working-directory: ./windows
run: |
nuget restore
msbuild "QMK Toolbox.sln" /verbosity:minimal /p:Configuration=Release

- uses: actions/upload-artifact@v3

- name: Sign QMK Toolbox
uses: dlemstra/code-sign-action@v1
with:
name: qmk_toolbox.exe
path: windows/QMK Toolbox/bin/Release/qmk_toolbox.exe
certificate: '${{ secrets.WINDOWS_CERTIFICATE }}'
password: '${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}'
folder: './windows/QMK Toolbox/bin/Release'
recursive: true

- name: Create installer
working-directory: ./windows
run: |
iscc install_compiler.iss

- name: Sign QMK Toolbox installer
uses: dlemstra/code-sign-action@v1
with:
certificate: '${{ secrets.WINDOWS_CERTIFICATE }}'
password: '${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}'
folder: './windows'

- uses: actions/upload-artifact@v3
with:
name: qmk_toolbox.exe
path: windows/QMK Toolbox/bin/Release/qmk_toolbox.exe

- uses: actions/upload-artifact@v3
with:
Expand Down