Skip to content
Merged
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-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ jobs:
runs-on: ubuntu-latest
environment:
name: nuget-beta
permissions:
id-token: write
contents: read
Comment on lines +109 to +111
# Only run publish when the merged PR does NOT contain the skip label.
# The label name is configurable via the `SKIP_PUBLISH_LABEL` env in the detector job below.
if: needs.detect-pr-label.outputs.skip_publish != 'true'
Expand All @@ -115,8 +118,14 @@ jobs:
with:
name: signed-nuget-packages

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

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

publish-azure-artifacts:
needs: [sign, detect-pr-label]
Expand Down
Loading