-
Notifications
You must be signed in to change notification settings - Fork 121
46 lines (40 loc) · 1.34 KB
/
deploy-jupyter-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
name: deploy-book
# Only run this when the main branch changes
on:
push:
branches:
- main
workflow_dispatch:
# This job installs dependencies, build the book, and pushes it to `gh-pages`
jobs:
deploy-book:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
conda install -c conda-forge pygraphviz
cd package && python -m pip --no-cache-dir install .
pip install torch-scatter torch-sparse torch-cluster torch-spline-conv torch-geometric -f https://data.pyg.org/whl/torch-1.12.0+cpu.html
- name: Build dmol-book package
run: |
pip install build
cd package && python -m build --sdist --wheel --outdir dist/ .
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
continue-on-error: true
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: package/dist/
- name: Build the book
run: env TF_CPP_MIN_LOG_LEVEL=3 jupyter-book build .
- name: Deploy Jupyter book to GitHub pages
uses: peaceiris/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: _build/html
force_orphan: true
cname: dmol.pub