Skip to content

Commit dd7e4dd

Browse files
committed
ci: docs workflow
1 parent 1f200a3 commit dd7e4dd

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/docs.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Docs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
pages: write
12+
id-token: write
13+
environment:
14+
name: github-pages
15+
url: ${{ steps.deploy.outputs.page_url }}
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
20+
- name: Install mise
21+
uses: jdx/mise-action@v2
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Generate docs & build
27+
run: pnpm build
28+
29+
- name: Upload artifact
30+
uses: actions/upload-pages-artifact@v3
31+
with:
32+
path: .vitepress/dist
33+
34+
- name: Deploy to GitHub Pages
35+
id: deploy
36+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)