Skip to content

Commit

Permalink
update jupyter book deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Mather committed Mar 30, 2023
1 parent b034abe commit 8daf676
Showing 1 changed file with 15 additions and 31 deletions.
46 changes: 15 additions & 31 deletions .github/workflows/build_deploy_jbdoc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,43 +8,27 @@ on:
- master
- dev

workflow_run:
workflows: ["Conda Deployment"]
branches: [master]
types:
- completed

workflow_dispatch:

jobs:
deploy:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Cache conda
uses: actions/cache@v1
env:
# Increase this value to reset cache if etc/example-environment.yml has not changed
CACHE_NUMBER: 1
with:
path: |
~/conda_pkgs_dir
~/.cache/pip
~/stripy/jupyterbook/_build
key: macos-jbdoc-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('.github/workflows/resources/conda_jb_docs_environment.yml') }}
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
pip install numpy
pip install scipy
pip install Cython
pip install jupyter-book
- name: Install latest stripy
run: |
pip install .
- name: Miniconda + Cache
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
environment-file: .github/workflows/resources/conda_jb_docs_environment.yml
activate-environment: conda-build-docs
python-version: 3.7
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!

- name: Build docs with jupyterbook
shell: bash -l {0}
run: |
Expand Down

0 comments on commit 8daf676

Please sign in to comment.