Skip to content

Commit dbc69d7

Browse files
Move the workflows off the Node 20 actions
GitHub now forces node20 actions onto the node24 runtime and warns on every run. Bumping to the majors that declare node24 natively -- rather than being coerced into it -- keeps the actions running on the runtime they were built and tested against. upload-pages-artifact has dropped dotfiles from the tar since v4; the published tree is only language directories, index.html, the archive and build-meta.txt, so nothing it carried before goes missing. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 862c700 commit dbc69d7

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# The hooks read the index, not just the work tree -- check-asciidoc and
2323
# site-index.sh both call `git ls-files` -- so this needs a real checkout.
2424
# Full history is not needed: every hook looks at the tree as it stands.
25-
- uses: actions/checkout@v4
25+
- uses: actions/checkout@v7
2626

2727
- name: Install Nix
2828
uses: cachix/install-nix-action@v31

.github/workflows/render-docs.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ jobs:
4141
matrix:
4242
lang: [en, de, fr, it, rm]
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: actions/checkout@v7
4545

4646
- name: Cache open-govpress download
47-
uses: actions/cache@v4
47+
uses: actions/cache@v6
4848
with:
4949
path: /tmp/open-govpress.tar.gz
5050
key: open-govpress-${{ env.GOVPRESS_SHA256 }}
@@ -94,7 +94,7 @@ jobs:
9494
run: tools/site-index.sh "${{ matrix.lang }}" "out/${{ matrix.lang }}"
9595

9696
- name: Upload build artifact
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@v7
9898
with:
9999
# `path: out/` so the archive's root is `<lang>/`, which is what lets
100100
# the collect job merge all five into one tree.
@@ -112,10 +112,10 @@ jobs:
112112
contents: write
113113
actions: read
114114
steps:
115-
- uses: actions/checkout@v4
115+
- uses: actions/checkout@v7
116116

117117
- name: Download every language
118-
uses: actions/download-artifact@v4
118+
uses: actions/download-artifact@v8
119119
with:
120120
pattern: pdfs-*
121121
# Without this each archive lands under its own `pdfs-<lang>/`
@@ -127,7 +127,7 @@ jobs:
127127
run: tools/site-root.sh site
128128

129129
- name: Upload site artifact
130-
uses: actions/upload-artifact@v4
130+
uses: actions/upload-artifact@v7
131131
with:
132132
name: site
133133
path: site/
@@ -143,15 +143,17 @@ jobs:
143143
KEEP_COMMITS: "10"
144144
run: tools/site-publish.sh site .site-history
145145

146-
# upload-pages-artifact tars the directory whole, and the clone's object
147-
# store would otherwise be published along with the site.
146+
# upload-pages-artifact excludes `.git` from its tar since v4, but the
147+
# site is re-published from a fresh clone each run and the object store
148+
# has no business being in the artifact -- dropping it here keeps that
149+
# guarantee ours rather than the action's.
148150
- name: Strip the git metadata
149151
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
150152
run: rm -rf .site-history/.git
151153

152154
- name: Upload Pages artifact
153155
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/v'))
154-
uses: actions/upload-pages-artifact@v3
156+
uses: actions/upload-pages-artifact@v5
155157
with:
156158
path: .site-history/
157159

@@ -178,4 +180,4 @@ jobs:
178180
# Undocumented but stable: the runner layers step `env` over the
179181
# default variables, and pages_build_version is a free-form string.
180182
GITHUB_SHA: ${{ github.sha }}-${{ github.ref_name }}
181-
uses: actions/deploy-pages@v4
183+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)