Skip to content

Use dynamic versioning to single-source version from git tags #221

Use dynamic versioning to single-source version from git tags

Use dynamic versioning to single-source version from git tags #221

Workflow file for this run

name: build_docs
on:
push:
branches: [master]
pull_request:
branches: ['*']
jobs:
build-docs:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
with:
fetch-tags: true
submodules: recursive
- uses: actions/[email protected]
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel
pip install .[all]
- name: Build the book
run: jupyter-book build docs/ --warningiserror --keep-going --all
- name: Upload artifacts
uses: actions/[email protected]
with:
name: html
path: docs/_build/html
- name: Upload to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html