Skip to content

[pre-commit.ci] pre-commit autoupdate (#116) #214

[pre-commit.ci] pre-commit autoupdate (#116)

[pre-commit.ci] pre-commit autoupdate (#116) #214

Workflow file for this run

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