2
2
name : Deploy Documentation
3
3
4
4
on :
5
- # Runs on pushes targeting the default branch
6
- push :
7
- branches : [' main' ]
5
+ # Runs on pushes targeting the default branch
6
+ push :
7
+ branches : [" main" ]
8
8
9
- # Allows you to run this workflow manually from the Actions tab
10
- workflow_dispatch :
9
+ # Allows you to run this workflow manually from the Actions tab
10
+ workflow_dispatch :
11
11
12
12
# Sets the GITHUB_TOKEN permissions to allow deployment to GitHub Pages
13
13
permissions :
14
- contents : read
15
- pages : write
16
- id-token : write
14
+ contents : read
15
+ pages : write
16
+ id-token : write
17
17
18
18
# Allow one concurrent deployment
19
19
concurrency :
20
- group : ' pages'
21
- cancel-in-progress : true
20
+ group : " pages"
21
+ cancel-in-progress : true
22
22
23
23
env :
24
- GA_ID : ${{ secrets.GA_ID }}
24
+ GA_ID : ${{ secrets.GA_ID }}
25
25
26
26
jobs :
27
- # Single deploy job since we're just deploying
28
- deploy :
29
- environment :
30
- name : github-pages
31
- url : ${{ steps.deployment.outputs.page_url }}
32
- runs-on : ubuntu-latest
33
- defaults :
34
- run :
35
- working-directory : ./docs
36
- steps :
37
- - name : Checkout
38
- uses : actions/checkout@v4
27
+ # Single deploy job since we're just deploying
28
+ deploy :
29
+ environment :
30
+ name : github-pages
31
+ url : ${{ steps.deployment.outputs.page_url }}
32
+ runs-on : ubuntu-latest
33
+ defaults :
34
+ run :
35
+ working-directory : ./docs
36
+ steps :
37
+ - name : Checkout
38
+ uses : actions/checkout@v4
39
39
40
- - name : Set up Node
41
- uses : actions/setup-node@v3
40
+ - name : Set up Node
41
+ uses : actions/setup-node@v3
42
42
43
- with :
44
- node-version : 18
45
- cache : " npm"
46
- cache-dependency-path : " docs"
43
+ with :
44
+ node-version : 18
45
+ cache : " npm"
46
+ cache-dependency-path : " docs"
47
47
48
- - name : Install dependencies
49
- run : npm install
48
+ - name : Install dependencies
49
+ run : npm install
50
50
51
- - name : Build
52
- run : npm run build
51
+ - name : Build
52
+ run : npm run build
53
53
54
- - name : Setup Pages
55
- uses : actions/configure-pages@v3
54
+ - name : Setup Pages
55
+ uses : actions/configure-pages@v5
56
56
57
- - name : Upload artifact
58
- uses : actions/upload-pages-artifact@v2
59
- with :
60
- # Upload dist repository
61
- path : ' ./docs/dist'
57
+ - name : Upload artifact
58
+ uses : actions/upload-pages-artifact@v3
59
+ with :
60
+ # Upload dist repository
61
+ path : " ./docs/dist"
62
62
63
- - name : Deploy to GitHub Pages
64
- id : deployment
65
- uses : actions/deploy-pages@v2
63
+ - name : Deploy to GitHub Pages
64
+ id : deployment
65
+ uses : actions/deploy-pages@v4
0 commit comments