Merge pull request #20 from ARCTraining/fixing_file_uploads #24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: deploy | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
deploy-book: | |
name: Build and Deploy Jupyter Book | |
runs-on: "ubuntu-latest" | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Conda environment | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: arcdocs-jb | |
environment-file: environment.yml | |
python-version: 3.9 | |
auto-activate-base: false | |
auto-update-conda: false | |
- name: Create Jupyter kernelspec | |
run: | | |
python -m ipykernel install --user --name data_vis --display-name "data_vis" | |
- name: Build Jupyter Book | |
run: | | |
jupyter-book build docs | |
- name: Deploy the book's HTML to GitHub Pages action | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: docs/_build/html |