1
- name : Publish Marimo Notebooks
1
+ name : Deploy Marimo Notebooks to GitHub Pages
2
2
3
3
on :
4
4
push :
5
5
branches : [master]
6
6
paths :
7
- - ' data_science_tools/polars_vs_pandas.py' # Only trigger on this specific file
8
- - ' .github/workflows/publish-marimo.yml' # Trigger on changes to this file
7
+ - ' data_science_tools/polars_vs_pandas.py'
8
+ - ' .github/workflows/publish-marimo.yml'
9
9
10
10
jobs :
11
11
build :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : Checkout repository
14
+ - name : Checkout Repository
15
15
uses : actions/checkout@v3
16
16
17
17
- name : Set up Python
18
18
uses : actions/setup-python@v4
19
19
with :
20
- python-version : ' 3.9'
21
- cache : ' pip'
20
+ python-version : ' 3.11'
22
21
23
- - name : Install dependencies
24
- run : |
25
- python -m pip install --upgrade pip
26
- pip install marimo
27
- # Install any other dependencies needed by your notebooks
28
- pip install pandas polars
22
+ - name : Install Marimo
23
+ run : pip install marimo
29
24
30
- - name : Export marimo notebook
25
+ - name : Export Marimo Notebook
31
26
run : |
32
- mkdir -p marimo_notebooks/data_science_tools/polars_vs_pandas
33
- # Export the specific notebook
34
- marimo export html-wasm "data_science_tools/polars_vs_pandas.py" --output marimo_notebooks/data_science_tools/polars_vs_pandas --mode edit
27
+ marimo export html-wasm data_science_tools/polars_vs_pandas.py -o build/data_science_tools/polars_vs_pandas --mode run
35
28
36
- - name : 📦 Upload Pages Artifact
29
+ - name : Upload Pages Artifact
37
30
uses : actions/upload-pages-artifact@v3
38
31
with :
39
- path : marimo_notebooks/data_science_tools/polars_vs_pandas
32
+ path : build
40
33
41
34
deploy :
42
35
needs : build
43
36
runs-on : ubuntu-latest
44
- environment :
45
- name : github-pages
46
- url : ${{ steps.deployment.outputs.page_url }}
47
-
48
37
permissions :
49
- pages : write
50
- id-token : write
51
-
38
+ pages : write
39
+ id-token : write
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
52
43
steps :
53
- - name : 🌐 Deploy to GitHub Pages
54
- id : deployment
55
- uses : actions/deploy-pages@v4
56
- with :
57
- artifact_name : github-pages
44
+ - name : Deploy to GitHub Pages
45
+ id : deployment
46
+ uses : actions/deploy-pages@v4
47
+ with :
48
+ artifact_name : github-pages
0 commit comments