-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (31 loc) · 859 Bytes
/
deploy.yml
File metadata and controls
40 lines (31 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy to GitHub Pages
on:
push:
branches: [main] # Change this if your default branch is different
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install root dependencies
run: bun install
- name: Install docs dependencies
run: |
cd docs
bun install
- name: Build project
run: |
cd docs
bun run build
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs/out # The folder the build script generates
branch: gh-pages # The branch the action will deploy to