Skip to content

Commit 9675f1e

Browse files
authored
Merge pull request #367 from fsprojects/repo-assist/eng-update-docs-workflow-actions-20260322-31f8718cb30c55f6
[Repo Assist] ci: align action versions in docs workflow and add NuGet cache to publish workflow
2 parents adb390f + 8b5fe3a commit 9675f1e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/publish.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
# setup dotnet based on global.json
2323
- name: setup-dotnet
2424
uses: actions/setup-dotnet@v4
25+
# cache NuGet packages to avoid re-downloading on every run
26+
- name: Cache NuGet packages
27+
uses: actions/cache@v5
28+
with:
29+
path: ~/.nuget/packages
30+
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', '**/*.csproj', 'global.json') }}
31+
restore-keys: nuget-${{ runner.os }}-
2532
# build it, test it, pack it, publish it
2633
- name: Run dotnet build (release, for nuget)
2734
# see issue #105 and #243

0 commit comments

Comments
 (0)