-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (40 loc) · 1.23 KB
/
docs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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