Skip to content

Commit

Permalink
Added signature to MSI
Browse files Browse the repository at this point in the history
  • Loading branch information
mickem committed Jan 26, 2025
1 parent 7fb38f0 commit 1b0eb4d
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/build-feature.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,17 @@ jobs:
with:
architecture: x64
version: ${{ needs.get-version.outputs.version }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
build-x86:
needs: get-version
uses: ./.github/workflows/build-windows.yml
with:
architecture: x86
version: ${{ needs.get-version.outputs.version }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
10 changes: 9 additions & 1 deletion .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,17 @@ jobs:
with:
architecture: x86
version: ${{ needs.get-version.outputs.version }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}

release:
needs: [get-version, build-x64, build-x86]
uses: ./.github/workflows/release.yml
with:
version: ${{ needs.get-version.outputs.version }}
version: ${{ needs.get-version.outputs.version }}
secrets:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
25 changes: 25 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,16 @@ on:
type: string
description: 'Version to build'
required: true
secrets:
AZURE_TENANT_ID:
description: 'Azure tenant ID'
required: true
AZURE_CLIENT_ID:
description: 'Azure client ID'
required: true
AZURE_CLIENT_SECRET:
description: 'Azure client secret'
required: true

env:
PERL_VERSION: 5.34
Expand Down Expand Up @@ -213,6 +223,21 @@ jobs:
for f in *-stripped.pdb; do mv -- "$f" "${f%-stripped.pdb}.pdb"; done
7z a -tzip -r ../NSCP-${{ inputs.version }}-${{ steps.setup.outputs.platform }}-symbols.zip .
- name: Sign files installer
uses: azure/[email protected]
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
azure-client-id: ${{ secrets.AZURE_CLIENT_ID }}
azure-client-secret: ${{ secrets.AZURE_CLIENT_SECRET }}
endpoint: https://neu.codesigning.azure.net
trusted-signing-account-name: nsclient
certificate-profile-name: nsclient
files-folder: ${{ github.workspace }}\tmp\nscp\installers\installer-NSCP
files-folder-filter: msi
file-digest: SHA256
timestamp-rfc3161: http://timestamp.acs.microsoft.com
timestamp-digest: SHA256

- uses: actions/upload-artifact@v4
with:
name: NSCP-${{ inputs.version }}-${{ steps.setup.outputs.platform }}
Expand Down

0 comments on commit 1b0eb4d

Please sign in to comment.