-
Notifications
You must be signed in to change notification settings - Fork 66
54 lines (53 loc) · 1.48 KB
/
docs.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
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Deploy documentation
on:
workflow_dispatch:
# runs every monday at midnight
schedule:
- cron: "0 0 * * 1"
push:
branches:
- master
jobs:
docs:
name: Build and Deploy
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest"]
php: ["8.2"]
clang: ["14"]
mdbook: ["latest"]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Setup Rust
uses: dtolnay/rust-toolchain@nightly
- name: Cache LLVM and Clang
id: cache-llvm
uses: actions/cache@v3
with:
path: ${{ runner.temp }}/llvm-${{ matrix.clang }}
key: ${{ matrix.os }}-llvm-${{ matrix.clang }}
- name: Setup LLVM & Clang
uses: KyleMayes/install-llvm-action@v1
with:
version: ${{ matrix.clang }}
directory: ${{ runner.temp }}/llvm-${{ matrix.clang }}
cached: ${{ steps.cache-llvm.outputs.cache-hit }}
- name: Install mdbook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: ${{ matrix.mdbook }}
- name: Build guide
run: mdbook build guide
- name: Publish docs
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: guide/book
CLEAN: true