Skip to content

Commit 8b5fe3a

Browse files
github-actions[bot]Copilot
authored andcommitted
ci: align action versions in docs.yaml and add NuGet cache to publish.yaml
- docs.yaml: bump actions/checkout from v4 to v6 (matches other workflows) - docs.yaml: bump actions/cache from v4 to v5 (matches other workflows) - publish.yaml: add missing NuGet cache step (all other workflows cache NuGet packages) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 64117f8 commit 8b5fe3a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/docs.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: checkout-code
17-
uses: actions/checkout@v4
17+
uses: actions/checkout@v6
1818
with:
1919
fetch-depth: 0
2020

2121
- name: setup-dotnet
2222
uses: actions/setup-dotnet@v4
2323

2424
- name: Cache NuGet packages
25-
uses: actions/cache@v4
25+
uses: actions/cache@v5
2626
with:
2727
path: ~/.nuget/packages
2828
key: nuget-${{ runner.os }}-${{ hashFiles('**/*.fsproj', 'global.json') }}

.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)