-
Notifications
You must be signed in to change notification settings - Fork 10
46 lines (39 loc) · 984 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
45
46
name: github pages
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: ghcr.io/scientificcomputing/fenics-gmsh:2023-08-16
steps:
- uses: actions/checkout@v3
- name: Cache
id: cache-primes
uses: actions/cache@v3
with:
path: |
~/.cache/instant
~/.cache/dijitso
~/.cache/pip
/__w/pulse/pulse/_build/jupyter_execute
key: cache_v5
restore-keys: |
cache_v5
- name: Upgrade pip
run: |
# install pip=>20.1 to use "pip cache dir"
python3 -m pip install --upgrade pip
- name: Install dependencies
run: |
make dev
- name: Build docs
run: |
make docs
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./_build/html