docs: Introduce the xDSL book #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow ensures the book can still be built. | |
# CI checking of Python code in the book happens in the regular CI pytest. | |
name: CI - Book Building | |
on: | |
# Trigger the workflow on push or pull request, | |
# but only for the main branch, and if the book | |
# has been modified. | |
push: | |
branches: | |
- main | |
paths: | |
- docs/book/** | |
pull_request: | |
paths: | |
- docs/book/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup mdBook | |
uses: peaceiris/actions-mdbook@v2.0.0 | |
with: | |
mdbook-version: '0.4.37' | |
- run: mdbook build docs/book |