@@ -23,27 +23,44 @@ jobs:
2323 build :
2424 runs-on : ubuntu-22.04
2525 container :
26- image : finsberg/ fenics-gmsh:latest
26+ image : ghcr.io/scientificcomputing/ fenics-gmsh:2023-08-16
2727
2828 env :
2929 # Directory that will be published on github pages
3030 PUBLISH_DIR : ./_build/html
3131
3232 steps :
33- - uses : actions/checkout@v3
33+ - uses : actions/checkout@v4
3434
3535 - name : Install dependencies
36- run : python3 -m pip install -r requirements.txt
36+ run : python3 -m pip install -r requirements-docs.txt
37+
38+ - name : Build docs
39+ run : jupyter book build -W .
40+
41+
42+ - name : Cache
43+ id : cache
44+ uses : actions/cache@v3
45+ with :
46+ path : |
47+ ~/.cache/pip
48+ ~/_build
49+ key : cache_v1
50+ restore-keys : |
51+ cache_v1
52+
53+ - name : Install dependencies
54+ run : python3 -m pip install -r requirements-docs.txt
3755
3856 - name : Build docs
3957 run : jupyter book build .
4058
4159 - name : Upload artifact
42- uses : actions/upload-pages-artifact@v1
60+ uses : actions/upload-pages-artifact@v2
4361 with :
4462 path : ${{ env.PUBLISH_DIR }}
4563
46-
4764 # Single deploy job since we're just deploying
4865 deploy :
4966 if : github.ref == 'refs/heads/main'
@@ -53,13 +70,15 @@ jobs:
5370 url : ${{ steps.deployment.outputs.page_url }}
5471
5572 runs-on : ubuntu-latest
73+
5674 steps :
5775 - name : Checkout
58- uses : actions/checkout@v3
76+ uses : actions/checkout@v4
5977
6078 - name : Setup Pages
61- uses : actions/configure-pages@v2
79+ uses : actions/configure-pages@v3
80+
6281
6382 - name : Deploy to GitHub Pages
6483 id : deployment
65- uses : actions/deploy-pages@v1
84+ uses : actions/deploy-pages@v2
0 commit comments