Skip to content

Commit 372dfff

Browse files
committed
ci: docs workflow
1 parent 1f200a3 commit 372dfff

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/docs.yml

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

0 commit comments

Comments
 (0)