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 : Deploy Docusaurus to GitHub Pages
2+
3+ on :
4+ pull_request :
5+ push :
6+ branches :
7+ - main
8+
9+ jobs :
10+ build :
11+ name : Build Docusaurus
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+ with :
16+ fetch-depth : 0
17+
18+ - uses : actions/setup-node@v4
19+ with :
20+ node-version : ' 22'
21+ cache : ' npm'
22+
23+ - name : Install root dependencies
24+ run : npm ci
25+
26+ - name : Install site dependencies
27+ run : npm run site:install
28+
29+ - name : Build Docusaurus site
30+ run : npm run site:build
31+
32+ - name : Upload Build Artifact
33+ uses : actions/upload-pages-artifact@v3
34+ with :
35+ path : build
36+
37+ deploy :
38+ name : Deploy to GitHub Pages
39+ needs : build
40+
41+ permissions :
42+ pages : write
43+ id-token : write
44+
45+ environment :
46+ name : github-pages
47+ url : ${{ steps.deployment.outputs.page_url }}
48+
49+ runs-on : ubuntu-latest
50+
51+ steps :
52+ - name : Deploy to GitHub Pages
53+ id : deployment
54+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments