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 to GitHub Pages
1+ name : Deploy docs to GitHub Pages
22
33on :
44 push :
5- branches : [main]
5+ branches : ["main"]
6+
7+ permissions :
8+ contents : read
9+ pages : write
10+ id-token : write
611
712jobs :
8- build-and-deploy :
13+ build :
914 runs-on : ubuntu-latest
15+
1016 steps :
11- - name : Checkout
12- uses : actions/checkout@v4
17+ - uses : actions/checkout@v4
1318
14- - name : Setup Bun
15- uses : oven-sh/setup-bun@v1
19+ - uses : oven-sh/setup-bun@v1
1620
17- - name : Install dependencies
18- run : bun install
21+ - run : bun install
1922
20- - name : Build Demo
21- run : VITE_DEMO_MODE=true bun run build
23+ - run : bun run build
2224
23- - name : Copy data to dist
24- run : cp -r data dist/data
25+ - run : cp -r data dist/
2526
26- - name : Deploy
27- uses : JamesIves/github-pages-deploy-action@v4
27+ - uses : actions/upload-pages-artifact@v3
2828 with :
29- folder : dist
30- branch : gh-pages
29+ path : ./dist
30+
31+ deploy :
32+ needs : build
33+ runs-on : ubuntu-latest
34+ steps :
35+ - uses : actions/deploy-pages@v4
You can’t perform that action at this time.
0 commit comments