Skip to content

Commit ac8206e

Browse files
committed
Use Trusted Publishing on nuget.org
1 parent 45e5d1c commit ac8206e

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77
tags:
88
- "v*"
99

10+
permissions:
11+
id-token: write
12+
contents: write
13+
packages: write
14+
1015
jobs:
1116
build:
1217
name: CI Build
@@ -88,8 +93,13 @@ jobs:
8893
uses: actions/download-artifact@v6
8994
with:
9095
name: packages
96+
- name: NuGet Login
97+
uses: NuGet/login@v1
98+
id: login
99+
with:
100+
user: phnx47
91101
- name: Push to nuget.org
92102
run: |
93103
dotnet nuget push "*.nupkg" \
94-
-k ${{ secrets.NUGET_DEPLOY_KEY }} \
104+
-k ${{ steps.login.outputs.NUGET_API_KEY }} \
95105
-s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)