File tree Expand file tree Collapse file tree 1 file changed +58
-0
lines changed
Expand file tree Collapse file tree 1 file changed +58
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ workflow_dispatch :
8+
9+ permissions :
10+ contents : read
11+ pages : write
12+ id-token : write
13+
14+ concurrency :
15+ group : " pages"
16+ cancel-in-progress : true
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Setup Node
27+ uses : actions/setup-node@v4
28+ with :
29+ node-version : 22
30+ cache : pnpm
31+
32+ - name : Setup pnpm
33+ uses : pnpm/action-setup@v4
34+ with :
35+ version : 10
36+
37+ - name : Install dependencies
38+ run : pnpm install --frozen-lockfile
39+
40+ - name : Build Docusaurus
41+ run : pnpm build
42+
43+ - name : Upload Pages Artifact
44+ uses : actions/upload-pages-artifact@v3
45+ with :
46+ path : ./build
47+
48+ deploy :
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
52+ runs-on : ubuntu-latest
53+ needs : build
54+
55+ steps :
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments