-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (46 loc) · 1.45 KB
/
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
46
47
48
49
50
51
52
name: deploy-book
# Only run this when the master branch changes
on:
push:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python-version: 3.9
- name: Install dependencies manually
run: |
pip install future matplotlib cartopy pandas requests seaborn jupyter-book scikit-learn ipywidgets
# pip install jupyter-book matplotlib numpy pandas future cartopy
pip install pmagpy==4.2.106
pip install -e ./smpsite
# - name: Create environment with micromamba 🐍🖤
# uses: mamba-org/setup-micromamba@v1
# with:
# micromamba-version: '1.3.1-0'
# environment-file: ./environment.yml
# environment-name: paleosampling
# init-shell: bash
# cache-environment: true
# Build the book
- name: Build the book 📘
run: |
jupyter-book build .
# env:
# PYTHON : /home/runner/micromamba/envs/paleosampling/bin/python
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html