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/Harp.Generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,9 @@ jobs:
environment: public-release
needs: build
if: github.event_name == 'release'
permissions:
# Needed to request the OIDC token for NuGet.org trusted publishing
id-token: write
steps:
# ----------------------------------------------------------------------- Set up .NET
- name: Setup .NET
Expand All @@ -257,8 +260,14 @@ jobs:
path: artifacts/packages/

# ----------------------------------------------------------------------- Push to NuGet.org
- name: Log in to NuGet.org with OIDC
uses: NuGet/login@v1
id: nuget-login
with:
user: ${{secrets.NUGET_USER}}

- name: Push to NuGet.org
run: dotnet nuget push "artifacts/packages/*.nupkg" --api-key ${{secrets.NUGET_API_KEY}} --source ${{vars.NUGET_API_URL}}
run: dotnet nuget push "artifacts/packages/*.nupkg" --api-key ${{steps.nuget-login.outputs.NUGET_API_KEY}} --source ${{vars.NUGET_API_URL}}
env:
# This is a workaround for https://github.com/NuGet/Home/issues/9775
DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER: 0
Expand Down
Loading