Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,9 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/') }}
needs: [ sign ]
environment: nuget-release-gate # This gates this job until manually approved
permissions:
id-token: write
contents: read
Comment on lines +385 to +387
runs-on: ubuntu-latest

steps:
Expand All @@ -397,10 +400,16 @@ jobs:
name: signed-packages
path: ./packages

- name: NuGet login (OIDC)
id: login
uses: NuGet/login@8d196754b4036150537f80ac539e15c2f1028841 # v1
with:
user: ${{ secrets.NUGET_USER }}

- name: Push to NuGet.org
run: >
dotnet nuget push
**/*.nupkg
--source https://api.nuget.org/v3/index.json
--api-key ${{ secrets.NUGET_PACKAGE_PUSH_TOKEN }}
--api-key ${{ steps.login.outputs.NUGET_API_KEY }}
--skip-duplicate
Loading