Skip to content

Commit 3cf0e92

Browse files
adjust workflow
1 parent cdc9cb2 commit 3cf0e92

File tree

1 file changed

+21
-30
lines changed

1 file changed

+21
-30
lines changed

.github/workflows/publish-marimo.yml

Lines changed: 21 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,48 @@
1-
name: Publish Marimo Notebooks
1+
name: Deploy Marimo Notebooks to GitHub Pages
22

33
on:
44
push:
55
branches: [master]
66
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'
99

1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
- name: Checkout repository
14+
- name: Checkout Repository
1515
uses: actions/checkout@v3
1616

1717
- name: Set up Python
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: '3.9'
21-
cache: 'pip'
20+
python-version: '3.11'
2221

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
2924

30-
- name: Export marimo notebook
25+
- name: Export Marimo Notebook
3126
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
3528
36-
- name: 📦 Upload Pages Artifact
29+
- name: Upload Pages Artifact
3730
uses: actions/upload-pages-artifact@v3
3831
with:
39-
path: marimo_notebooks/data_science_tools/polars_vs_pandas
32+
path: build
4033

4134
deploy:
4235
needs: build
4336
runs-on: ubuntu-latest
44-
environment:
45-
name: github-pages
46-
url: ${{ steps.deployment.outputs.page_url }}
47-
4837
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 }}
5243
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

Comments
 (0)