Skip to content

add click and sphinx-build #51

add click and sphinx-build

add click and sphinx-build #51

name: build-deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- master
pull_request:
branches:
- master
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-deploy-book:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
# Set up Miniconda with environment
- name: Setup Miniconda
uses: goanpeca/[email protected]
with:
environment-file: environment.yml
activate-environment: theme_dev
python-version: 3.7
auto-activate-base: false
# Build the book
- name: Build the book
shell: bash -l {0}
run: |
python inject_css.py
pip install .
echo "now build the book"
cd examples
sphinx-build -v -a -b html page_break_test page_break_test/_build/html
cd ..
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./examples/page_break_test/_build/html