File tree Expand file tree Collapse file tree 2 files changed +48
-717
lines changed Expand file tree Collapse file tree 2 files changed +48
-717
lines changed Original file line number Diff line number Diff line change
1
+ name : Deploy Marimo Notebooks to GitHub Pages
2
+
3
+ on :
4
+ push :
5
+ branches : [master]
6
+ paths :
7
+ - ' data_science_tools/polars_vs_pandas.py'
8
+ - ' .github/workflows/publish-marimo.yml'
9
+
10
+ jobs :
11
+ build :
12
+ runs-on : ubuntu-latest
13
+ steps :
14
+ - name : Checkout Repository
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : ' 3.11'
21
+
22
+ - name : Install Marimo
23
+ run : pip install marimo
24
+
25
+ - name : Export Marimo Notebook
26
+ run : |
27
+ marimo export html data_science_tools/polars_vs_pandas.py -o build/data_science_tools/polars_vs_pandas
28
+
29
+ - name : Upload Pages Artifact
30
+ uses : actions/upload-pages-artifact@v3
31
+ with :
32
+ path : build
33
+
34
+ deploy :
35
+ needs : build
36
+ runs-on : ubuntu-latest
37
+ permissions :
38
+ pages : write
39
+ id-token : write
40
+ environment :
41
+ name : github-pages
42
+ url : ${{ steps.deployment.outputs.page_url }}
43
+ steps :
44
+ - name : Deploy to GitHub Pages
45
+ id : deployment
46
+ uses : actions/deploy-pages@v4
47
+ with :
48
+ artifact_name : github-pages
You can’t perform that action at this time.
0 commit comments