Skip to content

Commit 77ffccb

Browse files
committed
Use Trusted Publishing on NuGet
1 parent ccb7d22 commit 77ffccb

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
@@ -15,6 +15,11 @@ env:
1515
TEST_DB_PASS: "Password12!"
1616
PKG_VERSION: "0.0.0"
1717

18+
permissions:
19+
id-token: write
20+
contents: write
21+
packages: write
22+
1823
jobs:
1924
build:
2025
name: Build, Test & Pack
@@ -128,8 +133,13 @@ jobs:
128133
uses: actions/download-artifact@v8
129134
with:
130135
name: packages
136+
- name: NuGet Login
137+
uses: NuGet/login@v1
138+
id: login
139+
with:
140+
user: ${{ github.repository_owner }}
131141
- name: Push to NuGet
132142
run: |
133143
dotnet nuget push "*.nupkg" \
134-
-k ${{ secrets.NUGET_KEY }} \
144+
-k ${{ steps.login.outputs.NUGET_API_KEY }} \
135145
-s https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)