We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9cb5e73 commit 7daebd5Copy full SHA for 7daebd5
.github/workflows/release.yml
@@ -11,12 +11,16 @@ jobs:
11
release:
12
runs-on: ubuntu-latest
13
14
- # TODO: Switch to trusted publishing in future
15
permissions:
16
id-token: write
17
18
steps:
19
- uses: actions/checkout@v4
+ - name: NuGet login (OIDC → temp API key)
20
+ uses: NuGet/login@v1
21
+ id: login
22
+ with:
23
+ user: ${{ secrets.NUGET_USER }}
24
- name: Extract version from tag
25
id: get_version
26
run: |
@@ -40,4 +44,4 @@ jobs:
40
44
- name: Publish the package to nuget.org
41
45
run: dotnet nuget push */bin/Release/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
42
46
env:
43
- NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
47
+ NUGET_AUTH_TOKEN: ${{ steps.login.outputs.NUGET_API_KEY }}
0 commit comments