-
-
Notifications
You must be signed in to change notification settings - Fork 256
38 lines (33 loc) · 1001 Bytes
/
docs.yaml
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
name: Documentation
on: [push, pull_request]
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
environment-file: ci/environment-docs.yaml
activate-environment: dask-ml-docs
auto-activate-base: false
- name: Install Dask-ML
shell: bash -l {0}
run: python -m pip install -e .
- name: Build docs
shell: bash -l {0}
run: |
cd docs
make html
- name: Deploy docs
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request'}}
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: docs/build/html
CLEAN: true