File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Deploy VitePress site to Pages
2+
3+ on :
4+ push :
5+ branches : [main]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
11+
12+ # Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
13+ # However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
14+ concurrency :
15+ group : pages
16+ cancel-in-progress : false
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+ steps :
22+ - name : Checkout
23+ uses : actions/checkout@v6
24+ with :
25+ fetch-depth : 0
26+ - name : Setup Bun
27+ uses : oven-sh/setup-bun@v2
28+ - name : Setup Pages
29+ uses : actions/configure-pages@v6
30+ - name : Install dependencies
31+ run : bun install --frozen-lockfile
32+ - name : Build with VitePress
33+ run : bun run docs:build
34+ - name : Upload artifact
35+ uses : actions/upload-pages-artifact@v5
36+ with :
37+ path : docs/.vitepress/dist
38+
39+ deploy :
40+ environment :
41+ name : github-pages
42+ url : ${{ steps.deployment.outputs.page_url }}
43+ needs : build
44+ runs-on : ubuntu-latest
45+ name : Deploy
46+ steps :
47+ - name : Deploy to GitHub Pages
48+ id : deployment
49+ uses : actions/deploy-pages@v5
You can’t perform that action at this time.
0 commit comments