Skip to content

Commit 2dd9270

Browse files
committed
try nuget publish push
1 parent 1bc7b66 commit 2dd9270

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/pre-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ jobs:
1515
run: echo "VERSION=${GITHUB_REF/refs\/tags\/v/}" >> $GITHUB_ENV
1616
- name: Pack
1717
run: dotnet pack --configuration Release /p:Version=${VERSION} --output .
18-
- name: Push
18+
- name: Push to Github Packages
1919
run: dotnet nuget push Plex.Api.${VERSION}.nupkg -s https://nuget.pkg.github.com/jensenkd/index.json -k ${GITHUB_TOKEN}
20-
- name: Push
20+
- name: Push to Nuget.Org
2121
run: dotnet nuget push Plex.Api.${VERSION}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
2222
env:
2323
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@ jobs:
2121
run: dotnet build --configuration Release /p:Version=${VERSION}
2222
- name: Pack
2323
run: dotnet pack --configuration Release /p:Version=${VERSION} --no-build --output .
24-
- name: Push
25-
run: dotnet nuget push Plex.Api.${VERSION}.nupkg --source https://nuget.pkg.github.com/jensenkd/index.json --api-key ${GITHUB_TOKEN}
26-
env:
24+
- name: Push to Github Packages
25+
run: dotnet nuget push Plex.Api.${VERSION}.nupkg -s https://nuget.pkg.github.com/jensenkd/index.json -k ${GITHUB_TOKEN}
26+
- name: Push to Nuget.Org
27+
run: dotnet nuget push Plex.Api.${VERSION}.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_KEY }}
28+
env:
2729
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)