Merge pull request #262 from matt-sd-watson/dev #186
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
name: docs | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "v*" | |
workflow_dispatch: | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r requirements.txt | |
python -m pip install -r requirements_docs.txt | |
python -m pip install -e ".[imc,cellpose,deepcell,napari]" | |
- name: Build documentation (versioned) | |
if: startsWith(github.ref, 'refs/tags') | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git fetch origin gh-pages --verbose | |
mike deploy -p -u --rebase ${GITHUB_REF#refs/tags/} | |
- name: Build documentation (latest) | |
if: github.ref == 'refs/heads/main' | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git fetch origin gh-pages --verbose | |
mike deploy -p -u --rebase latest |