Skip to content

Commit 77daea8

Browse files
authored
Update GitHub Packages configuration and push steps
1 parent 369bd85 commit 77daea8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/NuGetCD.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,15 @@ jobs:
159159
path: ${{ github.workspace }}/ServiceFabric.Mocks.${{ steps.tag_version.outputs.new_version }}.nupkg
160160

161161
# publish GH nuget package artifact
162+
- name: Configure GitHub Packages as NuGet source
163+
run: dotnet nuget add source --username loekd --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/loekd/index.json"
164+
162165
- name: Push Package to GitHub
163166
if: ${{ steps.check_version.outputs.sf_ver_changed == 'true' || github.event.inputs.force_release == 'true' }}
164-
run: dotnet nuget push --api-key ${{secrets.GITHUB_TOKEN}} --source "https://nuget.pkg.github.com/loekd/index.json" ${{ github.workspace }}/ServiceFabric.Mocks.${{ steps.tag_version.outputs.new_version }}.nupkg
167+
run: dotnet nuget push ${{ github.workspace }}/ServiceFabric.Mocks.${{ steps.tag_version.outputs.new_version }}.nupkg --source "github"
165168

166169
# publish packge to nuget
167-
- name: Push Package to GitHub
170+
- name: Push Package to NuGet
168171
if: ${{ steps.check_version.outputs.sf_ver_changed == 'true' || github.event.inputs.force_release == 'true' }}
169172
run: dotnet nuget push --api-key ${{secrets.NUGETPUSH}} --source "https://api.nuget.org/v3/index.json" ${{ github.workspace }}/ServiceFabric.Mocks.${{ steps.tag_version.outputs.new_version }}.nupkg
170173

0 commit comments

Comments
 (0)