-
-
Notifications
You must be signed in to change notification settings - Fork 709
39 lines (34 loc) · 1.13 KB
/
ci-build.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
39
name: CI
on: [push, pull_request]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v2
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
mamba-version: "*"
environment-file: binder/environment.yml
activate-environment: dask-tutorial
auto-activate-base: false
- name: Install testing and docs dependencies
shell: bash -l {0}
run: |
mamba install -c conda-forge nbconvert nbformat jupyter_client ipykernel
pip install nbsphinx dask-sphinx-theme>=3.0.5 sphinx
- name: Build
shell: bash -l {0}
run: |
python prep.py --small
sphinx-build -M html . _build -v
- name: Deploy
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: _build/html
CLEAN: true