Skip to content

Commit c15f848

Browse files
authored
Add GitHub Actions workflow for deployment
1 parent c2c448b commit c15f848

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
jobs:
2+
build:
3+
runs-on: ubuntu-latest
4+
5+
steps:
6+
# ... checkout and install dependencies
7+
8+
- name: 📄 Export notebook
9+
run: |
10+
marimo export html-wasm notebook.py -o path/to/output --mode run
11+
12+
- name: 📦 Upload Pages Artifact
13+
uses: actions/upload-pages-artifact@v3
14+
with:
15+
path: path/to/output
16+
17+
deploy:
18+
needs: build
19+
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
23+
24+
permissions:
25+
pages: write
26+
id-token: write
27+
28+
steps:
29+
- name: 🌐 Deploy to GitHub Pages
30+
id: deployment
31+
uses: actions/deploy-pages@v4
32+
with:
33+
artifact_name: github-pages

0 commit comments

Comments
 (0)