There was an error while loading. Please reload this page.
1 parent f074e7d commit 2c1b281Copy full SHA for 2c1b281
1 file changed
.github/workflows/publish-package.yml
@@ -13,6 +13,7 @@ on:
13
workflow_dispatch:
14
15
permissions:
16
+ id-token: write
17
contents: write
18
packages: write
19
@@ -75,6 +76,12 @@ jobs:
75
76
--no-restore \
77
--output ./artifacts
78
79
+ - name: Log in to NuGet
80
+ uses: NuGet/login@v1
81
+ id: nuget-login
82
+ with:
83
+ user: soenneker
84
+
85
- name: Publish to NuGet
86
shell: bash
87
run: |
@@ -86,7 +93,7 @@ jobs:
93
set +e
94
dotnet nuget push ./artifacts/*.nupkg \
88
95
--source "https://api.nuget.org/v3/index.json" \
89
- --api-key "${{ secrets.NUGET__TOKEN }}" \
96
+ --api-key "${{ steps.nuget-login.outputs.NUGET_API_KEY }}" \
90
97
--skip-duplicate 2>&1 | tee "$output_file"
91
98
exit_code=${PIPESTATUS[0]}
92
99
set -e
0 commit comments