File tree Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Expand file tree Collapse file tree 1 file changed +24
-9
lines changed Original file line number Diff line number Diff line change 4
4
push :
5
5
branches : master
6
6
7
+ permissions :
8
+ contents : read
9
+ pages : write
10
+ id-token : write
11
+
12
+ concurrency :
13
+ group : pages-${{ github.workflow }}-${{ github.ref }}
14
+
7
15
jobs :
8
- deploy :
16
+ build :
9
17
runs-on : ubuntu-latest
10
- concurrency :
11
- group : ${{ github.workflow }}-${{ github.ref }}
12
18
13
19
steps :
14
20
- uses : actions/checkout@v3
15
21
- uses : actions/setup-node@v3
16
22
with :
17
23
node-version : 16
18
24
25
+ - name : Setup Pages
26
+ uses : actions/configure-pages@v1
27
+
19
28
- name : Install dependencies
20
29
run : npm ci
21
30
@@ -25,10 +34,16 @@ jobs:
25
34
- name : Build
26
35
run : npm run build:docs
27
36
28
- - name : Deploy
29
- uses : peaceiris/ actions-gh- pages@v3
37
+ - name : Upload artifact
38
+ uses : actions/upload- pages-artifact@v1
30
39
with :
31
- github_token : ${{ secrets.GITHUB_TOKEN }}
32
- publish_dir : ./demo/build
33
- user_name : ' github-actions[bot]'
34
- user_email : ' github-actions[bot]@users.noreply.github.com'
40
+ path : ' ./demo/build'
41
+
42
+ deploy :
43
+ runs-on : ubuntu-latest
44
+ needs : build
45
+
46
+ steps :
47
+ - name : Deploy to GitHub Pages
48
+ id : deployment
49
+ uses : actions/deploy-pages@v1
You can’t perform that action at this time.
0 commit comments