forked from finsberg/visit-nrg-2025
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.46 KB
/
build_docs.yml
File metadata and controls
49 lines (39 loc) · 1.46 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
# This file was created automatically with `myst init --gh-pages` 🪄 💚
# Ensure your GitHub Pages settings for this repository are set to deploy with **GitHub Actions**.
name: MyST GitHub Pages Deploy
on:
pull_request:
branches: [main]
workflow_call:
workflow_dispatch:
env:
# `BASE_URL` determines, relative to the root of the domain, the URL that your site is served from.
# E.g., if your site lives at `https://mydomain.org/myproject`, set `BASE_URL=/myproject`.
# If, instead, your site lives at the root of the domain, at `https://mydomain.org`, set `BASE_URL=''`.
BASE_URL: /${{ github.event.repository.name }}
jobs:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install MyST
run: python3 -m pip install mystmd
- name: Build HTML Assets
# run: myst build --strict --ci --html
run: myst build --ci --html
- name: Install jupyterlite dependencies
run: python3 -m pip install -r requirements-lite.txt
- name: Build site for jupyterlite
run: |
jupyter lite build --contents notebooks --output-dir ./_build/html/lite
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: './_build/html'