2021-05-04 01:42:52 +02:00
|
|
|
name: Deploy documentation
|
|
|
|
on:
|
2021-08-21 15:00:14 +02:00
|
|
|
workflow_dispatch:
|
2021-05-04 01:42:52 +02:00
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
docs:
|
|
|
|
name: Build and Deploy
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout code
|
2022-09-10 02:25:59 +02:00
|
|
|
uses: actions/checkout@v3
|
2021-05-04 01:42:52 +02:00
|
|
|
- name: Setup PHP
|
|
|
|
uses: shivammathur/setup-php@v2
|
|
|
|
with:
|
2021-09-05 08:46:38 +02:00
|
|
|
php-version: 8.0
|
2021-05-04 01:42:52 +02:00
|
|
|
- name: Setup Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
2021-09-05 08:46:38 +02:00
|
|
|
toolchain: nightly
|
2021-09-05 07:56:29 +02:00
|
|
|
override: true
|
2021-05-04 01:42:52 +02:00
|
|
|
- name: Setup LLVM & Clang
|
|
|
|
uses: KyleMayes/install-llvm-action@v1
|
|
|
|
with:
|
2021-09-05 08:46:38 +02:00
|
|
|
version: 11.0
|
|
|
|
directory: ${{ runner.temp }}/llvm-11.0
|
2021-08-21 15:00:14 +02:00
|
|
|
- name: Install mdbook
|
2021-08-21 15:24:51 +02:00
|
|
|
uses: peaceiris/actions-mdbook@v1
|
2021-08-21 15:00:14 +02:00
|
|
|
with:
|
2021-08-21 15:24:51 +02:00
|
|
|
mdbook-version: latest
|
2021-08-21 15:00:14 +02:00
|
|
|
- name: Build guide
|
2021-09-05 08:46:38 +02:00
|
|
|
run: mdbook build guide
|
2021-05-04 01:42:52 +02:00
|
|
|
- name: Publish docs
|
|
|
|
uses: JamesIves/github-pages-deploy-action@3.7.1
|
|
|
|
with:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
BRANCH: gh-pages
|
2021-09-05 08:46:38 +02:00
|
|
|
FOLDER: guide/book
|
2022-09-10 02:25:59 +02:00
|
|
|
CLEAN: true
|