-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.34 KB
/
deploy.yml
File metadata and controls
55 lines (48 loc) · 1.34 KB
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
47
48
49
50
51
52
53
54
55
name: GitHub Pages Deploy
on:
push:
branches: [main]
workflow_dispatch:
env:
BASE_URL: /${{ github.event.repository.name }}
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
defaults:
run:
shell: bash -leo pipefail {0}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Pages
uses: actions/configure-pages@v5
- name: Set up conda env
uses: mamba-org/setup-micromamba@v2
with:
environment-file: environment.yml
cache-environment: true
- name: Install JB2
run: python -m pip install -U --pre "jupyter-book==2.*" --no-deps -v
# JB2 has --execute, but this way we can see how long it takes
- name: Execute the notebook
run: jupyter nbconvert --to notebook --execute --inplace 03-viz.ipynb
env:
PYVISTA_OFF_SCREEN: true
- name: Build HTML
run: jupyter book build --html --strict --ci
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
with:
path: "./_build/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4