Skip to content

Merge pull request #118 from isilber/IS_dev #24

Merge pull request #118 from isilber/IS_dev

Merge pull request #118 from isilber/IS_dev #24

Workflow file for this run

name: build-docs
on:
push:
branches:
- master
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
# This job installs dependencies, build the website, and pushes it to `gh-pages`
jobs:
deploy-website:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
# Install dependencies
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: continuous_integration/environment_docs.yml
activate-environment: testenv
auto-activate-base: false
mamba-version: '*'
use-mamba: true
miniforge-variant: Mambaforge
- name: Install EMC2
run: |
pip install -e .
# Build the website
- name: Build the site
run: |
cd doc
make html
# Push the book's HTML to github-pages
- name: GitHub Pages action
uses: peaceiris/[email protected]
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/build/html
cname: https://columncolab.github.io/EMC2/