-
Notifications
You must be signed in to change notification settings - Fork 34
42 lines (40 loc) · 1.08 KB
/
publish-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
# This workflow builds and publishes the latest docs to
# the `gh-pages` branch.
# For more details: https://github.com/marketplace/actions/deploy-to-github-pages
name: Publish docs
on:
release:
types: [created]
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
# fetch all tags so `versioneer` can properly determine current version
fetch-depth: 0
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.9'
miniforge-variant: Mambaforge
channels: conda-forge
channel-priority: true
activate-environment: rubicon-ml-docs
environment-file: docs/docs-environment.yml
- name: Install rubicon-ml
run: |
pip install --no-deps -e .
- name: Build
run: |
cd docs
make html
- name: Publish
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: gh-pages
folder: docs/build/html