File tree 1 file changed +25
-7
lines changed
1 file changed +25
-7
lines changed Original file line number Diff line number Diff line change 5
5
push :
6
6
branches : [main]
7
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
18
+
8
19
jobs :
9
- deploy-docs :
20
+ deploy :
21
+ environment :
22
+ name : github-pages
23
+ url : ${{ steps.deployment.outputs.page_url }}
10
24
runs-on : ubuntu-latest
11
25
steps :
12
- - uses : actions/checkout@v3
26
+ - name : Checkout
27
+ uses : actions/checkout@v3
13
28
- uses : actions/setup-node@v3
14
29
- name : Install And Build
15
30
run : |+
16
31
yarn install
17
32
yarn build
18
33
export NODE_OPTIONS="--max-old-space-size=8192"
19
34
yarn docs:build
20
- - name : Deploy
21
- uses : peaceiris/actions-gh-pages@v3
35
+ - name : Setup Pages
36
+ uses : actions/configure-pages@v1
37
+ - name : Upload artifact
38
+ uses : actions/upload-pages-artifact@v1
22
39
with :
23
- github_token : ${{ secrets.GITHUB_TOKEN }}
24
- publish_dir : ./build
25
- force_orphan : true
40
+ path : ./build
41
+ - name : Deploy to GitHub Pages
42
+ id : deployment
43
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments