-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (40 loc) · 1.04 KB
/
deploy_book.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
name: deploy-book
on:
release:
types: [published]
workflow_dispatch:
inputs:
tag:
description: Tag for manually running the deploy book workflow
required: True
default: ''
# This job installs dependencies, builds the book #TODO: and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
- name: Python info
run: |
which python
python --version
- name: Show pip list
run: |
pip list
# Build the book
- name: Build the book
run: |
pip install jupyter-book
jupyter-book build .
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html