Skip to content

Update docs.yml

Update docs.yml #188

Workflow file for this run

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 ${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 latest