Skip to content

Commit 7ce4305

Browse files
committed
Restore NuGet config
1 parent e18fac5 commit 7ce4305

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

.github/workflows/package.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ jobs:
1010
permissions:
1111
packages: write
1212
contents: read
13-
id-token: write # Explicitly grant write permission for the OIDC token
1413
steps:
1514
- uses: actions/checkout@v5
1615
- uses: actions/setup-dotnet@v4
@@ -26,13 +25,6 @@ jobs:
2625
-p:VersionSuffix="preview.${{ github.run_number }}"
2726
- name: Pack release
2827
if: "!github.event.release.prerelease"
29-
run: dotnet pack --configuration Release --output ./nupkg
30-
# Get a short-lived NuGet API key
31-
- name: NuGet login (OIDC → temp API key)
32-
uses: NuGet/login@v1
33-
id: login
34-
with:
35-
user: ${{ secrets.NUGET_USER }}
36-
28+
run: dotnet pack --configuration Release --output ./nupkg
3729
- name: Publish packages to NuGet
38-
run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json
30+
run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)