Skip to content

Commit 958bca7

Browse files
committed
ci: use nuget api key secret for publish
1 parent c789f4d commit 958bca7

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ jobs:
4343
needs: build
4444
runs-on: ubuntu-latest
4545
if: startsWith(github.ref, 'refs/tags/')
46-
permissions:
47-
id-token: write
4846
steps:
4947
- name: Download artifacts
5048
uses: actions/download-artifact@v4
@@ -57,11 +55,5 @@ jobs:
5755
with:
5856
dotnet-version: 10.0.x
5957

60-
- name: Login to NuGet
61-
id: login
62-
uses: NuGet/login@v1
63-
with:
64-
nuget-server-url: https://api.nuget.org/v3/index.json
65-
6658
- name: Push to NuGet
67-
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ steps.login.outputs.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
59+
run: dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)