Skip to content

Commit 9f36692

Browse files
change github workflow
1 parent 447ff0d commit 9f36692

File tree

2 files changed

+48
-717
lines changed

2 files changed

+48
-717
lines changed

.github/workflows/publish-marimo.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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

0 commit comments

Comments
 (0)