Skip to content

GitHub Pages

GitHub Pages #21

Workflow file for this run

name: GitHub Pages
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
schedule:
- cron: "0 0 * * 0"
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- uses: s-weigand/setup-conda@v1
with:
update-conda: true
python-version: "3.10"
conda-channels: anaconda, conda-forge
- name: Install dependencies
run: |
conda install --file requirements.txt
conda install --file pages_requirements.txt
python -m pip install .
- name: Build documentation
run: |
cd docs
mv Makefile.gh_pages Makefile
cp ../examples/*.ipynb ./
make clean
make html
cd ../
touch _gh-pages/latest/html/.nojekyll
ls
ls *
ls */*
ls ./_gh-pages/latest/html
rm -r docs
mv _gh-pages/latest/html docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/master' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: .