Skip to content

Commit 18f981b

Browse files
committed
chore: add cache action
1 parent 217da3d commit 18f981b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,22 @@ jobs:
1919
with:
2020
dotnet-version: 9.0.x
2121

22+
- name: Cache NuGet packages
23+
uses: actions/cache@v4
24+
with:
25+
path: ~/.nuget/packages
26+
key: ${{runner.os}}-nuget-${{hashFiles('​**​/*.csproj')}}
27+
restore-keys: |
28+
${{runner.os}}-nuget-
29+
30+
- name: Restore dependencies
31+
run: dotnet restore src/BootstrapBlazor
32+
2233
- name: Build
2334
env:
2435
NUGET_API_KEY: ${{secrets.NUGET_API_KEY}}
2536
Bundle: True
2637
run: |
27-
dotnet restore src/BootstrapBlazor --no-cache
2838
dotnet build src/BootstrapBlazor
2939
3040
- name: Test

0 commit comments

Comments
 (0)