Skip to content
Closed
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 templates/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,19 @@ permissions:
id-token: write
packages: write

concurrency:
# Serialize releases per ref; never cancel an in-flight publish (registries are immutable,
# so a half-published, cancelled run can strand artifacts).
group: nuget-publish-${{ github.ref }}
cancel-in-progress: false

jobs:
publish:
runs-on: ubuntu-latest
# Must match the nuget.org Trusted Publisher policy's Environment field. The policies for
# these repos use Environment 'nuget'; without this the OIDC token carries an empty environment
# claim and NuGet/login fails with HTTP 401 "Environment mismatch ... expected 'nuget', actual ''".
environment: nuget
steps:
- uses: actions/checkout@v6
with:
Expand Down