File tree Expand file tree Collapse file tree 3 files changed +60
-2
lines changed
Expand file tree Collapse file tree 3 files changed +60
-2
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy docs
2+
3+ on :
4+ push :
5+ branches : [main]
6+
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 : false
17+
18+ jobs :
19+ # Build job
20+ build :
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+ with :
26+ fetch-depth : 0 # Not needed if lastUpdated is not enabled
27+ - uses : pnpm/action-setup@v3 # pnpm is optional but recommended, you can also use npm / yarn
28+ with :
29+ version : 8
30+ - name : Setup Node
31+ uses : actions/setup-node@v4
32+ with :
33+ node-version : 20
34+ cache : pnpm
35+ - name : Setup Pages
36+ uses : actions/configure-pages@v5
37+ - name : Install dependencies
38+ run : pnpm install
39+ - name : Build with Rspress
40+ run : |
41+ pnpm run build
42+ - name : Upload artifact
43+ uses : actions/upload-pages-artifact@v3
44+ with :
45+ path : apps/site/doc_build
46+
47+ # Deployment job
48+ deploy :
49+ environment :
50+ name : github-pages
51+ url : ${{ steps.deployment.outputs.page_url }}
52+ needs : build
53+ runs-on : ubuntu-latest
54+ name : Deploy
55+ steps :
56+ - name : Deploy to GitHub Pages
57+ id : deployment
58+ uses : actions/deploy-pages@v4
Original file line number Diff line number Diff line change 11{
2- "name" : " site" ,
2+ "name" : " @kona/ site" ,
33 "version" : " 1.0.0" ,
44 "private" : true ,
55 "scripts" : {
Original file line number Diff line number Diff line change 55 "description" : " " ,
66 "main" : " index.js" ,
77 "scripts" : {
8- "test" : " echo \" Error: no test specified \" && exit 1 "
8+ "build:site" : " pnpm --filter @kona/site build "
99 },
1010 "keywords" : [],
1111 "author" : " " ,
You can’t perform that action at this time.
0 commit comments