Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
Add github nuget feed to build action
  • Loading branch information
vb2ae authored Apr 21, 2024
1 parent 72af6c3 commit bf9a43c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
env:
caliburn_sln : "src\\caliburn.micro.sln"
caliburn_tutorial: "samples\\tutorals\\WPF\\Wpf.Tutorial\\Caliburn.Micro.Tutorial.App.sln"
caliburn_setup: "samples\\setup\\setup.sln"
caliburn_features: "samples\\features\\features.sln"
package_feed: "https://nuget.pkg.github.com/caliburn-micro/index.json"
nuget_folder: "\\packages"

Expand Down Expand Up @@ -54,7 +56,13 @@ jobs:
- name: Build app for release
run: msbuild ${{env.caliburn_sln}} /t:Build /p:Configuration=Release


- name: Ensure GitHub NuGet Source
run: |
dotnet nuget add source ${{ env.package_feed }} \
-n github \
-u ${{ secrets.NUGET_USER }} \
-p ${{ secrets.CONSUME_CALIBURN_FEED }} \
--store-password-in-clear-text
- name: Restore nuget packages for tutorial
run: msbuild ${{env.caliburn_tutorial}} -t:restore
Expand Down

0 comments on commit bf9a43c

Please sign in to comment.