File tree Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Expand file tree Collapse file tree 2 files changed +21
-12
lines changed Original file line number Diff line number Diff line change 1
1
name : Build spec
2
2
3
- on : [pull_request, push ]
3
+ on : [pull_request]
4
4
5
5
jobs :
6
6
build :
Original file line number Diff line number Diff line change 1
- name : Deploy gh-pages
1
+ name : Deploy spec to GitHub Pages
2
2
3
3
permissions :
4
- contents : write
4
+ contents : read
5
+ pages : write
6
+ id-token : write
5
7
6
8
on :
7
9
push :
8
10
branches :
9
11
- main
10
12
13
+ concurrency :
14
+ group : pages
15
+ cancel-in-progress : false
16
+
11
17
jobs :
12
18
deploy :
19
+ environment :
20
+ name : github-pages
21
+ url : ${{ steps.deployment.outputs.page_url }}
13
22
runs-on : ubuntu-latest
14
-
15
23
steps :
16
- - uses : actions/checkout@v4
17
- - run : npm install
18
- - run : npm run build
19
- - uses : JamesIves/github-pages-deploy-action@v4
20
- with :
21
- branch : gh-pages
22
- folder : build
23
- clean : true
24
+ - uses : actions/checkout@v4
25
+ - uses : actions/configure-pages@v5
26
+ - run : npm install
27
+ - run : npm run build
28
+ - uses : actions/upload-pages-artifact@v3
29
+ with :
30
+ path : build/
31
+ - uses : actions/deploy-pages@v4
32
+ id : deployment
You can’t perform that action at this time.
0 commit comments