Skip to content

refactor: tidying up test cases and ensuring consistent error state i… #136

refactor: tidying up test cases and ensuring consistent error state i…

refactor: tidying up test cases and ensuring consistent error state i… #136

Workflow file for this run

name: Book
on:
push:
branches:
- develop
pull_request:
jobs:
deploy:
name: Deploy docs to GitHub Pages
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
- name: Install C deps
run: sudo apt-get update && sudo apt-get install -y libxrandr-dev libx11-xcb-dev libxcb-randr0-dev libxft-dev --fix-missing
- name: Build
run: mdbook build docs && cargo doc --workspace --no-deps && mv target/doc docs/book/rustdoc
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/develop' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book