File tree 1 file changed +10
-35
lines changed
1 file changed +10
-35
lines changed Original file line number Diff line number Diff line change @@ -9,43 +9,18 @@ permissions:
9
9
contents : write
10
10
11
11
jobs :
12
- build :
13
- name : Build Docusaurus
12
+ build-and-deploy :
14
13
runs-on : ubuntu-latest
15
14
steps :
16
- - uses : actions/checkout@v4
17
- with :
18
- fetch-depth : 0
19
- - uses : actions/setup-node@v4
20
- with :
21
- node-version : 21
22
- cache : npm
23
-
24
- - name : Install dependencies
25
- run : npm ci
26
-
27
- - name : Build website
28
- run : npm run build
29
-
30
- - name : Upload Build Artifact
31
- uses : actions/upload-pages-artifact@v3
32
- with :
33
- path : build
34
-
35
- deploy :
36
- name : Deploy to GitHub Pages
37
- needs : build
15
+ - name : Checkout
16
+ uses : actions/checkout@v3
38
17
39
- permissions :
40
- pages : write
41
- id-token : write
42
-
43
- environment :
44
- name : github-pages
45
- url : ${{ steps.deployment.outputs.page_url }}
18
+ - name : Install and Build website
19
+ run : |
20
+ npm ci
21
+ npm run build
46
22
47
- runs-on : ubuntu-latest
48
- steps :
49
23
- name : Deploy to GitHub Pages
50
- id : deployment
51
- uses : actions/deploy-pages@v4
24
+ uses : JamesIves/github-pages-deploy-action@v4
25
+ with :
26
+ folder : build
You can’t perform that action at this time.
0 commit comments