Skip to content

Commit 0729655

Browse files
committed
Build docs site with GHA
1 parent 3be6563 commit 0729655

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/docs.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Documentation
2+
on:
3+
push:
4+
branches: [main]
5+
6+
jobs:
7+
generate:
8+
name: Generate documentation
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: oven-sh/setup-bun@v1
14+
with:
15+
bun-version: latest
16+
- run: bun install
17+
- run: bun run docs
18+
- uses: actions/upload-pages-artifact@v2
19+
with:
20+
path: 'docs/'
21+
22+
deploy:
23+
name: Deploy documentation site
24+
needs: generate
25+
runs-on: ubuntu-latest
26+
27+
permissions:
28+
pages: write
29+
id-token: write
30+
31+
environment:
32+
name: github-pages
33+
url: ${{ steps.deployment.outputs.page_url }}
34+
35+
steps:
36+
- name: Deploy to GitHub Pages
37+
id: deployment
38+
uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)