Skip to content

Commit 74dd063

Browse files
committedApr 24, 2024··
moving nuget config earlier in actions
1 parent 7794b7d commit 74dd063

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed
 

‎.github/workflows/dotnet_pullrequest.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
Net_Project_Directory: Xcaciv.Command
1616
Net_Project_Path: src\Xcaciv.Command\Xcaciv.Command\Xcaciv.Command.csproj
1717
Nuget_Project_Path: src\Xcaciv.Command\Xcaciv.Command\Xcaciv.Command.csproj
18-
18+
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v4
@@ -26,6 +26,9 @@ jobs:
2626
with:
2727
dotnet-version: 8.0.x
2828

29+
- name: Configure Nuget Source
30+
run: |
31+
dotnet nuget add source "https://nuget.pkg.github.com/xcaciv/index.json" -n "github" -u xcaciv -p ${{ secrets.NUGET_PAT }} --store-password-in-clear-text
2932
- name: Restore dependencies
3033
run: dotnet restore $env:Solution_Name
3134
- name: Debug Build

‎.github/workflows/dotnet_push.yml

+4-3
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,12 @@ jobs:
2626
with:
2727
dotnet-version: 8.0.x
2828

29+
- name: Configure Nuget Source
30+
run: |
31+
dotnet nuget add source "https://nuget.pkg.github.com/xcaciv/index.json" -n "github" -u xcaciv -p ${{ secrets.NUGET_PAT }} --store-password-in-clear-text
2932
- name: Restore dependencies
3033
run: dotnet restore $env:Solution_Name
34+
3135
- name: Debug Build
3236
run: dotnet build $env:Solution_Name --no-restore --configuration Debug
3337
- name: Test with dotnet
@@ -45,9 +49,6 @@ jobs:
4549
- name: Nuget Package
4650
run: |
4751
dotnet pack $env:Nuget_Project_Path --no-build --configuration Release
48-
- name: Configure Nuget Source
49-
run: |
50-
dotnet nuget add source "https://nuget.pkg.github.com/xcaciv/index.json" -n "github" -u xcaciv -p ${{ secrets.NUGET_PAT }} --store-password-in-clear-text
5152
- name: Nuget Push
5253
run: |
5354
dotnet nuget push **\*.nupkg -k ${{ secrets.NUGET_PAT }} -s "github" --skip-duplicate

0 commit comments

Comments
 (0)
Please sign in to comment.