ci: actually sign windows builds in Release env

Signed-off-by: Seth Flynn <getchoo@tuta.io>
This commit is contained in:
Seth Flynn
2026-01-05 13:32:03 -05:00
parent fe2e171fa1
commit 939093d648
2 changed files with 5 additions and 3 deletions

View File

@@ -54,13 +54,13 @@ runs:
Get-ChildItem ${{ env.INSTALL_DIR }} -Recurse | ForEach FullName | Resolve-Path -Relative | %{ $_.TrimStart('.\') } | %{ $_.TrimStart('${{ env.INSTALL_DIR }}') } | %{ $_.TrimStart('\') } | Out-File -FilePath ${{ env.INSTALL_DIR }}/manifest.txt Get-ChildItem ${{ env.INSTALL_DIR }} -Recurse | ForEach FullName | Resolve-Path -Relative | %{ $_.TrimStart('.\') } | %{ $_.TrimStart('${{ env.INSTALL_DIR }}') } | %{ $_.TrimStart('\') } | Out-File -FilePath ${{ env.INSTALL_DIR }}/manifest.txt
- name: Emit warning for unsigned builds - name: Emit warning for unsigned builds
if: ${{ github.ref_name != 'develop' || inputs.azure-client-id == '' }} if: ${{ env.CI_HAS_ACCESS_TO_AZURE == '' || inputs.azure-client-id == '' }}
shell: pwsh shell: pwsh
run: | run: |
":warning: Skipped code signing for Windows, as certificate was not present." >> $env:GITHUB_STEP_SUMMARY ":warning: Skipped code signing for Windows, as certificate was not present." >> $env:GITHUB_STEP_SUMMARY
- name: Login to Azure - name: Login to Azure
if: ${{ github.ref_name == 'develop' && inputs.azure-client-id != '' }} if: ${{ env.CI_HAS_ACCESS_TO_AZURE != '' && inputs.azure-client-id != '' }}
uses: azure/login@v2 uses: azure/login@v2
with: with:
client-id: ${{ inputs.azure-client-id }} client-id: ${{ inputs.azure-client-id }}
@@ -68,7 +68,7 @@ runs:
subscription-id: ${{ inputs.azure-subscription-id }} subscription-id: ${{ inputs.azure-subscription-id }}
- name: Sign executables - name: Sign executables
if: ${{ github.ref_name == 'develop' && inputs.azure-client-id != '' }} if: ${{ env.CI_HAS_ACCESS_TO_AZURE != '' && inputs.azure-client-id != '' }}
uses: azure/trusted-signing-action@v0 uses: azure/trusted-signing-action@v0
with: with:
endpoint: https://eus.codesigning.azure.net/ endpoint: https://eus.codesigning.azure.net/

View File

@@ -220,6 +220,8 @@ jobs:
- name: Package (Windows) - name: Package (Windows)
if: ${{ runner.os == 'Windows' }} if: ${{ runner.os == 'Windows' }}
uses: ./.github/actions/package/windows uses: ./.github/actions/package/windows
env:
CI_HAS_ACCESS_TO_AZURE: ${{ vars.CI_HAS_ACCESS_TO_AZURE || '' }}
with: with:
version: ${{ steps.short-version.outputs.version }} version: ${{ steps.short-version.outputs.version }}
build-type: ${{ steps.setup-dependencies.outputs.build-type }} build-type: ${{ steps.setup-dependencies.outputs.build-type }}