-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathconfig.yml
More file actions
51 lines (40 loc) · 1.04 KB
/
config.yml
File metadata and controls
51 lines (40 loc) · 1.04 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
version: 2.1
jobs:
build-site:
docker:
- image: cimg/python:3.13
environment:
SITE_SRC: site
SITE_PATH: ${SITE_SRC}/_build/html
steps:
- checkout
- restore_cache:
keys:
- node-cache-v1
- run:
name: Install Node.js
command: |
curl -fsSL https://deb.nodesource.com/setup_24.x | sudo -E bash -
sudo apt-get install -y nodejs
- run:
name: Install mystmd
command: |
npm install mystmd
- save_cache:
key: node-cache-v1
paths:
- node_modules
- run:
name: Build site
command: |
export BASE_URL="/output/job/$CIRCLE_WORKFLOW_JOB_ID/artifacts/0/${SITE_PATH}"
(cd ${SITE_SRC} && npx myst build --html)
## Temporary hack to remove unused thebe JS
rm ${SITE_PATH}/*thebe*.js
- store_artifacts:
path: ${SITE_PATH}
workflows:
version: 2
build-and-site:
jobs:
- build-site