File tree Expand file tree Collapse file tree 1 file changed +29
-14
lines changed Expand file tree Collapse file tree 1 file changed +29
-14
lines changed Original file line number Diff line number Diff line change 1
- name : Deploy
1
+ name : Deploy to GitHub Pages
2
+
2
3
on :
3
4
workflow_dispatch : {}
4
5
push :
5
6
branches :
6
7
- main
8
+
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ concurrency :
15
+ group : ' pages'
16
+ cancel-in-progress : true
17
+
7
18
jobs :
8
- deploy :
19
+ build :
9
20
runs-on : ubuntu-latest
10
- permissions :
11
- pages : write
12
- id-token : write
13
- environment :
14
- name : github-pages
15
- url : ${{ steps.deployment.outputs.page_url }}
16
21
steps :
17
22
- uses : actions/checkout@v3
18
23
with :
19
24
fetch-depth : 0
20
- - uses : actions/setup-node@v3
25
+ - name : Use Node.js 18
26
+ uses : actions/setup-node@v3
21
27
with :
22
- node-version : 16
28
+ node-version : 18
23
29
cache : npm
24
30
- run : npm install --frozen-lockfile
25
31
- name : Build
26
32
run : npm run docs:build
27
- - uses : actions/configure-pages@v2
28
- - uses : actions/upload-pages-artifact@v1
33
+
34
+ - name : Upload artifact
35
+ uses : actions/upload-pages-artifact@v3
29
36
with :
30
37
path : docs/.vitepress/dist
31
- - name : Deploy
38
+
39
+ deploy :
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+ runs-on : ubuntu-latest
44
+ needs : build
45
+ steps :
46
+ - name : Deploy to GitHub Pages
32
47
id : deployment
33
- uses : actions/deploy-pages@v1
48
+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments