Skip to content

Commit eda987b

Browse files
committed
Add github nuget repositiory to build step
1 parent ba3ad08 commit eda987b

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

.github/workflows/pr-build.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ jobs:
2626
with:
2727
dotnet-version: ${{ env.DOTNET_VERSION }}
2828

29+
- name: Setup Github NuGet
30+
run: |
31+
dotnet nuget add source \
32+
--username ${{ github.actor }} \
33+
--password ${{ secrets.GITHUB_TOKEN }} \
34+
--store-password-in-clear-text \
35+
--name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
36+
2937
- name: Restore dependencies
3038
run: dotnet restore ${{ env.PROJECT }}
3139

.github/workflows/release-zip.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373
git tag "$NEW_VERSION"
7474
git push origin "$NEW_VERSION"
7575
76+
- name: Setup Github NuGet
77+
run: |
78+
dotnet nuget add source \
79+
--username ${{ github.actor }} \
80+
--password ${{ secrets.GITHUB_TOKEN }} \
81+
--store-password-in-clear-text \
82+
--name github "https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json"
83+
7684
- name: Build
7785
run: dotnet publish ${{ env.PROJECT }} -c Release -o ${{ env.OUTPUT_PATH }}
7886

0 commit comments

Comments
 (0)