File tree Expand file tree Collapse file tree 1 file changed +3
-11
lines changed
Expand file tree Collapse file tree 1 file changed +3
-11
lines changed Original file line number Diff line number Diff line change @@ -10,29 +10,21 @@ 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
1716 with :
1817 dotnet-version : 8.0.x
1918
2019 - name : Build release
21- run : dotnet build src/Devlord.Utilities/Devlord.Utilities.csproj --configuration Release
20+ run : dotnet build --configuration Release
2221 - name : Pack prerelease with build number
2322 if : " github.event.release.prerelease"
2423 run : |
2524 dotnet pack --configuration Release --output ./nupkg \
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 : devlord
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://www .nuget.org/api/v2/package
30+ run : dotnet nuget push "./nupkg/*.nupkg" --api-key ${{ secrets. NUGET_API_KEY }} --source https://api .nuget.org/v3/index.json
You can’t perform that action at this time.
0 commit comments