Skip to content

Commit 2bf2616

Browse files
committed
updates to publish workflow
1 parent cc0881b commit 2bf2616

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,5 +62,5 @@ jobs:
6262
dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/Test
6363
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/packages
6464
dotnet test ${GITHUB_WORKSPACE}/Test
65-
- name: Push packages to GitHub Packages
65+
- name: Push packages to GitHub Package Registry
6666
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' --skip-duplicate

.github/workflows/NUGET-PUSH.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,7 @@ jobs:
5757
dotnet new bunit --no-restore -o ${GITHUB_WORKSPACE}/Test
5858
dotnet restore ${GITHUB_WORKSPACE}/Test/Test.csproj --source ${GITHUB_WORKSPACE}/packages
5959
dotnet test ${GITHUB_WORKSPACE}/Test
60-
- name: Push packages to GitHub Packages
61-
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
60+
- name: Push packages to NuGet
61+
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.NUGET_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
62+
- name: Push packages to GitHub Package Registry
63+
run: dotnet nuget push ${GITHUB_WORKSPACE}/packages/'*.nupkg' -k ${{ secrets.GITHUB_TOKEN }} -s https://nuget.pkg.github.com/egil/index.json --skip-duplicate

0 commit comments

Comments
 (0)