Skip to content

Commit 8a22123

Browse files
committed
Merge remote-tracking branch 'origin/master' into develop
2 parents d783def + ba57d7d commit 8a22123

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/package.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,13 @@ jobs:
2525
-p:VersionSuffix="preview.${{ github.run_number }}"
2626
- name: Pack release
2727
if: "!github.event.release.prerelease"
28-
run: dotnet pack src/Devlord.Utilities/Devlord.Utilities.csproj --configuration Release --output ./nupkg
28+
run: dotnet pack --configuration Release --output ./nupkg
29+
# Get a short-lived NuGet API key
30+
- name: NuGet login (OIDC → temp API key)
31+
uses: NuGet/login@v1
32+
id: login
33+
with:
34+
user: ${{ secrets.NUGET_USER }}
35+
2936
- name: Publish packages to NuGet
30-
run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json
37+
run: dotnet nuget push "./nupkg/*.nupkg" --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)