File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed
Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Docs Deployment
2+
3+ on :
4+ push :
5+ branches : [master]
6+ paths :
7+ - ' website/**'
8+ workflow_dispatch :
9+
10+ permissions :
11+ contents : read
12+ pages : write
13+ id-token : write
14+
15+ jobs :
16+ build :
17+ runs-on : ubuntu-latest
18+ steps :
19+ - name : Checkout Repository
20+ uses : actions/checkout@v4
21+
22+ - name : Setup Node.js
23+ uses : actions/setup-node@v4
24+ with :
25+ node-version : ' 20'
26+
27+ - name : Enable Corepack and Set up Yarn
28+ run : |
29+ corepack enable
30+ corepack prepare yarn@4.10.3 --activate
31+
32+ - name : Install Dependencies
33+ working-directory : ./website
34+ run : yarn install --immutable
35+
36+ - name : Build Docusaurus Website
37+ working-directory : ./website
38+ run : yarn build
39+
40+ - name : Upload Build Artifact
41+ uses : actions/upload-pages-artifact@v3
42+ with :
43+ path : website/build
44+
45+ deploy :
46+ needs : build
47+ runs-on : ubuntu-latest
48+ environment :
49+ name : github-pages
50+ url : ${{ steps.deployment.outputs.page_url }}
51+ steps :
52+ - name : Deploy Docusaurus Website to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments