Skip to content

Commit 12af95e

Browse files
authored
ops: switch to trustedpublishing
1 parent 8d3a046 commit 12af95e

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/release.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,18 @@ jobs:
3535
run: npm clean-install
3636
- name: Test
3737
run: dotnet test -c Release
38+
39+
# Get a short-lived NuGet API key
40+
# https://www.nuget.org/account/trustedpublishing
41+
# https://learn.microsoft.com/en-gb/nuget/nuget-org/trusted-publishing
42+
- name: NuGet login (OIDC → temp API key)
43+
uses: NuGet/login@v1
44+
id: nuget
45+
with:
46+
user: Catglobe
47+
3848
- name: Release
3949
run: npx semantic-release
4050
env:
4151
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42-
NUGET_TOKEN: ${{ secrets.NUGET_TOKEN }}
52+
NUGET_TOKEN: ${{steps.nuget.outputs.NUGET_API_KEY}}

0 commit comments

Comments
 (0)