Skip to content

Commit e97718d

Browse files
committed
fix github token
1 parent 189849e commit e97718d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/build-native-nuget.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
paths:
77
- .github/workflows/build-native-nuget.yml
88
workflow_dispatch:
9+
10+
permissions:
11+
packages: write
912

1013
jobs:
1114
build-all:
@@ -187,8 +190,7 @@ jobs:
187190

188191
- name: Push nupkg to Github Packages
189192
run: |
190-
echo "Pushing to GitHub Packages: ${{ matrix.title }}"
191193
for f in ${{ github.workspace }}/nupkgs/*.nupkg
192194
do
193-
dotnet nuget push "$f" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" --api-key "${{ env.GITHUB_TOKEN }}" --skip-duplicate
195+
dotnet nuget push "$f" --source "https://nuget.pkg.github.com/${{ github.repository_owner }}" --api-key "${{ secrets.GITHUB_TOKEN }}" --skip-duplicate
194196
done

0 commit comments

Comments
 (0)