File tree Expand file tree Collapse file tree 1 file changed +10
-35
lines changed
Expand file tree Collapse file tree 1 file changed +10
-35
lines changed Original file line number Diff line number Diff line change @@ -9,43 +9,18 @@ permissions:
99 contents : write
1010
1111jobs :
12- build :
13- name : Build Docusaurus
12+ build-and-deploy :
1413 runs-on : ubuntu-latest
1514 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
3817
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
4622
47- runs-on : ubuntu-latest
48- steps :
4923 - 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