Skip to content

Commit 7a3e5ca

Browse files
improve command
1 parent 4a42b3d commit 7a3e5ca

2 files changed

Lines changed: 14 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,13 @@ jobs:
4141
run: dotnet pack ./src/FluentEmail.Graph/FluentEmail.Graph.csproj -c Release -o ./artifacts --no-build
4242

4343
- name: 🔑 Add GitHub packages to nuget sources
44-
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/alistar-dev/index.json"
44+
run: |
45+
dotnet nuget add source \
46+
--username ${{ github.actor }} \
47+
--password ${{ secrets.GITHUB_TOKEN }} \
48+
--store-password-in-clear-text \
49+
--name github \
50+
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
4551
4652
- name: 🚀 Publish to GitHub packages
4753
run: dotnet nuget push "./artifacts/*.nupkg" --source "github" --api-key ${{ secrets.GITHUB_TOKEN }}

.github/workflows/publish.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
run: dotnet pack ./src/FluentEmail.Graph/FluentEmail.Graph.csproj -c Release -o ./artifacts --no-build
3939

4040
- name: 🔑 Add GitHub packages to nuget sources
41-
run: dotnet nuget add source --username USERNAME --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/alistar-dev/index.json"
41+
run: |
42+
dotnet nuget add source \
43+
--username ${{ github.actor }} \
44+
--password ${{ secrets.GITHUB_TOKEN }} \
45+
--store-password-in-clear-text \
46+
--name github \
47+
"https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
4248
4349
- name: 🚀 Push package to Github and NuGet
4450
run: |

0 commit comments

Comments
 (0)