File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55jobs :
66 build :
77 runs-on : ubuntu-latest
8+ permissions :
9+ id-token : write
810 steps :
911 - name : Checkout
1012 uses : actions/checkout@v2
@@ -25,10 +27,16 @@ jobs:
2527 run : dotnet test --configuration Release /p:Version=${VERSION} --no-build
2628 - name : Pack
2729 run : dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
30+
31+ - name : NuGet login (OIDC → temp API key)
32+ uses : NuGet/login@v1
33+ id : login
34+ with :
35+ user : ascott18
36+
2837 - name : Push
29- run : dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${NUGET_KEY}
30- env :
31- NUGET_KEY : ${{ secrets.NUGET_KEY }}
38+ run : dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ steps.login.outputs.NUGET_API_KEY }}
39+
3240 - name : Create GH Release
3341 uses : softprops/action-gh-release@v1
3442 with :
You can’t perform that action at this time.
0 commit comments