File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 88jobs :
99 build-and-publish :
1010 runs-on : ubuntu-latest
11+ environment : production
1112 permissions :
1213 contents : read
1314
3233
3334 - name : Pack
3435 run : dotnet pack src/BbQ.Events.PostgreSql/BbQ.Events.PostgreSql.csproj --configuration Release --no-build --output ./artifacts
35-
36+
37+ - name : NuGet login (OIDC → temp API key)
38+ uses : NuGet/login@v1
39+ id : login
40+ with :
41+ user : ${{ secrets.NUGET_USER }}
42+
3643 - name : Push to NuGet
37- run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
38- env :
39- NUGET_API_KEY : ${{ secrets.NUGET_API_KEY }}
44+ run : dotnet nuget push ./artifacts/*.nupkg --api-key ${{steps.login.outputs.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
You can’t perform that action at this time.
0 commit comments