forked from elkowar/eww
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.28 KB
/
gh-pages.yml
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
41
name: Build and deploy Github pages
on:
push:
branches: [develop]
paths:
- "docs/**"
- "gen-docs.ts"
- "crates/eww/src/widgets/widget_definitions.rs"
- "crates/eww/src/config/inbuilt.rs"
- ".github/workflows/**"
jobs:
build:
name: Build mdBook
runs-on: ubuntu-latest
steps:
# Checkout
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
# Build widget documentation
- name: Use deno to build widget documentation
uses: denoland/setup-deno@main
with:
deno-version: "v1.x"
- run: deno run --allow-read --allow-write gen-docs.ts ./crates/eww/src/widgets/widget_definitions.rs ./crates/eww/src/config/inbuilt.rs
# Build & deploy
- name: build mdBook page
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: '0.4.8'
- run: mdbook build docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book/