Skip to content
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
10 changes: 10 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
- master
pull_request:

# Cancel a superseded PR build when new commits are pushed to the same PR.
# Never cancel a master build, so a release build is not dropped by a later merge.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

jobs:
build:
runs-on: windows-latest
Expand All @@ -27,6 +33,7 @@ jobs:
dotnet-version: '10.x'

- name: Install AzureSignTool
if: github.event_name == 'push'
run: dotnet tool install --global AzureSignTool

- name: Restore NuGet packages
Expand Down Expand Up @@ -66,6 +73,7 @@ jobs:
/p:PublishReadyToRun=true

- name: Sign executables
if: github.event_name == 'push'
env:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_APPLICATION_ID: ${{ secrets.AZURE_APPLICATION_ID }}
Expand Down Expand Up @@ -134,6 +142,7 @@ jobs:
shell: pwsh

- name: Sign MSI
if: github.event_name == 'push'
env:
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_APPLICATION_ID: ${{ secrets.AZURE_APPLICATION_ID }}
Expand All @@ -159,6 +168,7 @@ jobs:
}

- name: Upload MSI artifact
if: github.event_name == 'push'
uses: actions/upload-artifact@v4
with:
name: MSI
Expand Down
Loading