-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (41 loc) · 1.1 KB
/
ci2.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
40
41
42
43
44
45
46
name: CI2
on:
push:
branches:
- 'main'
schedule:
- cron: '0 0 * * *' # Daily “At 00:00”
workflow_dispatch: # allows you to trigger manually
jobs:
build-docs-push-ghpages:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest]
# python-version: [3.8]
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up conda environment with micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: ci/environment.yml
environment-name: dev-feisty
create-args: python=3.11
- name: Show conda environment
shell: bash -l {0}
run: |
conda list
# Build the book
- name: Build the book
run: |
jupyter-book build docs/ --all
# Deploy the book's HTML to gh-pages branch
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_build/html