-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (70 loc) · 2.06 KB
/
deploy.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: deploy
on:
# Trigger the workflow on push to main branch
push:
branches:
- main
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
build-and-deploy-book:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.10.11]
steps:
- uses: actions/checkout@v2
# Install CC
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Setup with Mamba
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
auto-activate-base: false
miniforge-variant: Mambaforge
miniforge-version: latest
activate-environment: conda-env-paleobook-dev-py
environment-file: environment.yml
- name: ipykernel
run: |
pip install ipykernel
python -m ipykernel install --user --name conda-env-paleobook-dev-py
# Print Conda info
- name: Conda info
shell: bash -l {0}
run: |
conda activate conda-env-paleobook-dev-py
pip install jupyter-book
pip install ghp-import
conda list
conda info
jupyter-book toc .
jupyter-book build .
ghp-import ./_build/html -f -p -n -b paleobook
# # install pips
# - name: Bonus pips
# run: |
# pip install seaborn
# pip install pandas>=2.0.0
# pip install jupyter-book
# pip install ghp-import
# Build the book
# - name: Build book TOC file
# run: |
# jupyter-book toc .
# - name: Build the book
# run: |
# jupyter-book build .
# Deploy the book's HTML to gh-pages branch
# - name: GitHub Pages action
# uses: peaceiris/[email protected]
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_branch: paleobook
# publish_dir: ./_build/html
# - name: Push _build/html to paleobook
# run: |
# ghp-import ./_build/html -f -p -n -b paleobook