Skip to content

Commit 49ce06a

Browse files
committed
ci(pages): migrate workflow off node20 actions
1 parent eb2c1a2 commit 49ce06a

1 file changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/pages.yml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@v6
2323

2424
- name: Setup Node
25-
uses: actions/setup-node@v4
25+
uses: actions/setup-node@v6
2626
with:
27-
node-version: 20
27+
node-version: 24
2828
cache: npm
2929

3030
- name: Install dependencies
@@ -33,10 +33,24 @@ jobs:
3333
- name: Build docs
3434
run: npm run docs:build
3535

36+
- name: Package Pages artifact
37+
run: |
38+
tar \
39+
--dereference --hard-dereference \
40+
--directory docs/.vitepress/dist \
41+
--exclude=.git \
42+
--exclude=.github \
43+
--exclude=".[^/]*" \
44+
-cvf "$RUNNER_TEMP/artifact.tar" \
45+
.
46+
3647
- name: Upload Pages artifact
37-
uses: actions/upload-pages-artifact@v3
48+
uses: actions/upload-artifact@v7
3849
with:
39-
path: docs/.vitepress/dist
50+
name: github-pages
51+
path: ${{ runner.temp }}/artifact.tar
52+
retention-days: 1
53+
if-no-files-found: error
4054

4155
deploy:
4256
environment:
@@ -47,4 +61,4 @@ jobs:
4761
steps:
4862
- name: Deploy to GitHub Pages
4963
id: deployment
50-
uses: actions/deploy-pages@v4
64+
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)