-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (37 loc) · 1019 Bytes
/
github-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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