You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/release_nuget.yml
+14-7Lines changed: 14 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -35,9 +35,15 @@ jobs:
35
35
push_release:
36
36
needs: run_tests
37
37
if: startsWith(github.ref, 'refs/tags/v')
38
-
runs-on: windows-latest
38
+
runs-on: ubuntu-latest
39
39
env:
40
40
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
41
+
environment: "release"# has to match the policy name in the nuget.org Trusted Publishing setup.
42
+
# if the environment name is not set here, you'll run into an error message like "Error: Token exchange failed (401): Environment mismatch for policy 'release': expected 'release', actual ''"
43
+
# This job is based on the Trusted Publishing Setup.
44
+
# See https://learn.microsoft.com/en-us/nuget/nuget-org/trusted-publishing for details.
45
+
permissions:
46
+
id-token: write # enable GitHub OIDC token issuance for this job
0 commit comments