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