-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.1 KB
/
gh-pages.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
name: Docs
on:
push:
branches:
- master
pull_request:
branches:
- master
permissions:
contents: write
jobs:
build-and-deploy:
runs-on: ubuntu-latest
name: Build and deploy
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup Conda (Micromamba)
uses: mamba-org/setup-micromamba@v1
with:
cache-downloads: true
environment-file: environment-docs.yml
- name: Install xdatasets (docs)
run: |
python -m ipykernel install --user --name=xdatasets
pip install --editable ".[docs]"
- name: Check versions
run: |
pip check || true
- name: Build docs
shell: bash -l {0}
run: |
make docs
- name: Deploy 🚀
uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: docs/_build/html # The folder the action should deploy.