Skip to content

Merge pull request #414 from ocefpaf/v1.6.6relprep_remove_twine #111

Merge pull request #414 from ocefpaf/v1.6.6relprep_remove_twine

Merge pull request #414 from ocefpaf/v1.6.6relprep_remove_twine #111

Workflow file for this run

name: Build and Deploy docs
on:
pull_request:
push:
branches:
- master
release:
types:
- published
# Deny all permissions by default
permissions: {}
jobs:
build-docs:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Setup Mamba
uses: mamba-org/setup-micromamba@f457c30a868e4760d3a6fcea5f25dc655b8edf39 # v3.2.1
with:
environment-name: TEST
create-args: >-
python=3
numpy>1.13.3
sphinx
- name: Build environment
shell: bash -l {0}
run: |
python -m pip install -e . --no-deps --force-reinstall
- name: Get the version
shell: bash -l {0}
id: get_version
run: echo "name=VERSION::$(python setup.py --version)" >> $GITHUB_OUTPUT
- name: Build documentation
shell: bash -l {0}
run: |
set -e
pushd docs
make html linkcheck O=-W
popd
- name: Deploy
if: success() && github.event_name == 'release'
uses: peaceiris/actions-gh-pages@84c30a85c19949d7eee79c4ff27748b70285e453 # v4.1.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html