Skip to content

Commit f63f98c

Browse files
committed
better workflow perhaps?
1 parent f339378 commit f63f98c

1 file changed

Lines changed: 22 additions & 17 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
name: Deploy to GitHub Pages
1+
name: Deploy docs to GitHub Pages
22

33
on:
44
push:
5-
branches: [main]
5+
branches: ["main"]
6+
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
611

712
jobs:
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

0 commit comments

Comments
 (0)