File tree Expand file tree Collapse file tree 1 file changed +35
-10
lines changed
Expand file tree Collapse file tree 1 file changed +35
-10
lines changed Original file line number Diff line number Diff line change @@ -9,18 +9,43 @@ permissions:
99 contents : write
1010
1111jobs :
12- build-and-deploy :
12+ build :
13+ name : Build Docusaurus
1314 runs-on : ubuntu-latest
1415 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
1723
18- - name : Install and Build website
19- run : |
20- npm ci
21- npm run build
24+ - name : Install dependencies
25+ run : npm ci
2226
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
2532 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