Skip to content
This repository was archived by the owner on Jun 1, 2024. It is now read-only.

Commit 5b9795f

Browse files
committed
set api key
1 parent cd2f399 commit 5b9795f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/cicd.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ jobs:
101101
path: nuget
102102
- name: Push to GitHub Feed
103103
run: |
104-
dotnet nuget add source --username $GITHUB_USER --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/serilog-contrib/index.json"
105-
104+
dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/serilog-contrib/index.json"
105+
106106
for f in ./nuget/*.nupkg
107107
do
108108
echo $f
109-
dotnet nuget push $f --source "github" --skip-duplicate
109+
dotnet nuget push $f --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
110110
done
111-
111+
112112
publish:
113113
runs-on: ubuntu-latest
114114
needs: package
@@ -145,7 +145,7 @@ jobs:
145145
146146
for f in ./nuget/*.nupkg
147147
do
148-
dotnet nuget push $f --source "github" --skip-duplicate
148+
dotnet nuget push $f --source "github" --api-key ${{ secrets.GITHUB_TOKEN }} --skip-duplicate
149149
done
150150

151151
- name: Publish NuGet package on nuget.org

0 commit comments

Comments
 (0)