Skip to content

Add automatic versioning to the library #188

Add automatic versioning to the library

Add automatic versioning to the library #188

Workflow file for this run

name: Build and publish documentation
on:
push:
branches:
- master
pull_request:
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: r-lib/actions/setup-pandoc@v1
- name: Checkout Source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install .
pip install .[dev]
- name: Checkout gh-pages
uses: actions/checkout@v2
with:
ref: gh-pages
path: docs/_build
- name: Build docs
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
run: sphinx-build docs docs/_build
- name: Publish Docs to gh-pages
if: github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags')
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build
keep_files: true