raletively stable with one working algorithm: ready to test #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: Docs | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout files | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Install Python | |
uses: actions/setup-python@v2 | |
- name: Install prerequisites | |
run: pip install -e .[dev] | |
- name: Build & Deploy Docs | |
shell: bash | |
run: | | |
git status | |
git config --local user.email "github-actions-bot@users.noreply.github.com" | |
git config --local user.name "Github Actions Bot" | |
cd docs/ | |
make html | |
cd build/html/ | |
cd ../../../ | |
git checkout gh-pages | |
mv docs/build/html/_static .static | |
mv docs/build/html/* . | |
shopt -s extglob | |
rm -rf !(README.md|*.html|*.js|*.json) | |
mv .static/ _static/ | |
git add . | |
git commit -m "Update docs for commit ${GITHUB_SHA}" -a || echo "Nothing to commit" | |
git push |