File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
4761 steps :
4862 - name : Deploy to GitHub Pages
4963 id : deployment
50- uses : actions/deploy-pages@v4
64+ uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments