[pre-commit.ci] pre-commit autoupdate (#103) #181
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: github pages | |
on: [push] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-08-16 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache | |
id: cache-primes | |
uses: actions/cache@v2 | |
with: | |
path: | | |
~/.cache/instant | |
~/.cache/dijitso | |
~/.cache/pip | |
docs/_build/jupyter_execute | |
key: cache_v4 | |
restore-keys: | | |
cache_v4 | |
- name: Upgrade pip | |
run: | | |
# install pip=>20.1 to use "pip cache dir" | |
# python3 -m pip install --upgrade pip | |
- name: Install dependencies | |
run: | | |
python3 -m pip install ".[docs]" | |
- name: Build docs | |
run: | | |
make docs | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build/html |