Skip to content

Commit 34d1b88

Browse files
committed
chore: add NUGET_PACKAGES to ci pipeline
1 parent 28e4f8b commit 34d1b88

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/dotnet.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13+
env:
14+
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
1315

1416
steps:
1517
- uses: actions/checkout@v4
@@ -30,17 +32,17 @@ jobs:
3032

3133
- name: Pack Solution
3234
run: dotnet pack -p:PackageOutputPath="${GITHUB_WORKSPACE}/packages" -p:IncludeSymbols=false -p:RepositoryCommit=${GITHUB_SHA} -p:PackageVersion="0.0.0.1"
33-
35+
3436
- name: Test
3537
run: dotnet test --framework net8.0 --no-build --verbosity normal
3638

37-
- name: Upload Binary Log
39+
- name: Upload Binary Log
3840
uses: actions/upload-artifact@v4
3941
if: always()
4042
with:
4143
name: binary-log
4244
path: msbuild.binlog
43-
45+
4446
- name: Upload Packages
4547
uses: actions/upload-artifact@v4
4648
if: always()

0 commit comments

Comments
 (0)