File tree Expand file tree Collapse file tree 1 file changed +31
-8
lines changed Expand file tree Collapse file tree 1 file changed +31
-8
lines changed Original file line number Diff line number Diff line change @@ -3,20 +3,43 @@ name: GHPages
3
3
on :
4
4
push :
5
5
branches : [master]
6
+ workflow_dispatch : null
7
+
8
+ # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
9
+ permissions :
10
+ contents : read
11
+ pages : write
12
+ id-token : write
13
+
14
+ # Allow one concurrent deployment
15
+ concurrency :
16
+ group : pages
17
+ cancel-in-progress : true
6
18
7
19
jobs :
8
- deploy-docs :
20
+ deploy :
21
+ environment :
22
+ name : github-pages
23
+ url : ${{ steps.deployment.outputs.page_url }}
9
24
runs-on : ubuntu-latest
10
25
steps :
11
- - uses : actions/checkout@v3
26
+ - name : Checkout
27
+ uses : actions/checkout@v3
12
28
- uses : actions/setup-node@v3
29
+ with :
30
+ node-version : 18
13
31
- name : Install Packages
14
32
run : npm ci
15
33
- name : Build docs
16
- run : npm run docs:build
17
- - name : Deploy
18
- uses : peaceiris/actions-gh-pages@v3
34
+ run : |+
35
+ export NODE_OPTIONS=--openssl-legacy-provider
36
+ npm run docs:build
37
+ - name : Setup Pages
38
+ uses : actions/configure-pages@v1
39
+ - name : Upload artifact
40
+ uses : actions/upload-pages-artifact@v1
19
41
with :
20
- github_token : ${{ secrets.GITHUB_TOKEN }}
21
- publish_dir : ./docs/.vuepress/dist
22
- force_orphan : true
42
+ path : ./docs/.vuepress/dist
43
+ - name : Deploy to GitHub Pages
44
+ id : deployment
45
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments