-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sign Windows binaries with Azure Trusted Signing
- Loading branch information
Showing
1 changed file
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,6 +38,7 @@ jobs: | |
runs-on: windows-2019 | ||
env: | ||
GENERATOR: Visual Studio 16 2019 | ||
CODESIGN: ${{ !!secrets.AZURE_CERT_PROFILE_NAME }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Prepare package | ||
|
@@ -67,6 +68,21 @@ jobs: | |
cp .\Release\* ..\artifacts\$env:ARCH | ||
env: | ||
ARCH: Win32 | ||
- name: Sign generated DLLs | ||
uses: azure/[email protected] | ||
if: env.CODESIGN == 'true' | ||
with: | ||
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }} | ||
endpoint: ${{ secrets.AZURE_ENDPOINT }} | ||
trusted-signing-account-name: ${{ secrets.AZURE_CODE_SIGNING_NAME }} | ||
certificate-profile-name: ${{ secrets.AZURE_CERT_PROFILE_NAME }} | ||
files-folder: artifacts | ||
files-folder-filter: exe,dll | ||
files-folder-recurse: true | ||
timestamp-rfc3161: http://timestamp.acs.microsoft.com | ||
timestamp-digest: SHA256 | ||
- name: Archive production artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|