Skip to content

Commit 183be21

Browse files
author
Stefan Kuethe
committed
Build marimo
1 parent 2beda86 commit 183be21

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python-version: "3.11"
2323

2424
- name: Install package
25-
run: pip install -e .
25+
run: pip install .
2626

2727
- name: Install dependencies
2828
run: pip install -r requirements.docs.txt
@@ -36,6 +36,12 @@ jobs:
3636
pip install -r requirements.txt
3737
jupyter lite build --contents contents --output-dir ../dist/jupyterlite
3838
39+
- name: Build marimo
40+
run: |
41+
cd marimo
42+
pip install marimo
43+
./export-notebooks.sh ../dist/marimo
44+
3945
- name: Upload artifact
4046
uses: actions/upload-pages-artifact@v3
4147
with:

marimo/export-notebooks.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
#!/bin/bash
2-
files=("getting-started.py", "pmtiles-vector.py")
2+
output_folder=${1:-dist}
3+
files=("getting-started.py" "pmtiles-vector.py")
34

45
for file in "${files[@]}"; do
56
without_extension="${file%.*}"
6-
marimo export html-wasm "$file" -o dist/"$without_extension".html --mode edit
7+
marimo export html-wasm "$file" -o $output_folder/"$without_extension".html --mode edit
78
done
89

0 commit comments

Comments
 (0)