-
-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (33 loc) Β· 928 Bytes
/
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
---
name: Cloudflare pages
on:
push:
branches: [main]
paths: [docs/**, README.md]
permissions:
contents: write
jobs:
build-and-deploy:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout ποΈ
uses: actions/checkout@v4
- name: Setup mdBook π
uses: peaceiris/actions-mdbook@v2
with:
mdbook-version: latest
- name: Install further deps π¦
run: |
sudo apt-get install -y --no-install-recommends cargo
cargo install mdbook-admonish
cargo install mdbook-emojicodes
PATH=$HOME/.cargo/bin:$PATH
- name: Install and Build π§
run: cd docs && mdbook build
- name: Deploy π
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: cf-pages
publish_dir: docs/book