chore(deps): bump astral-sh/setup-uv from 5 to 6 (#8) #9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Playground | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup `uv` | |
uses: astral-sh/setup-uv@v6 | |
- name: Setup `pnpm` | |
uses: pnpm/action-setup@v4 | |
- name: Install dependencies | |
run: | | |
pnpm install | |
uv sync | |
- name: Export notebook | |
run: | | |
uv run marimo export html-wasm playground/d2_playground.py -o playground/dist --mode run | |
- name: Upload Pages Artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: playground/dist | |
deploy: | |
needs: build | |
runs-on: ubuntu-latest | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
pages: write | |
id-token: write | |
steps: | |
- name: 🌐 Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 | |
with: | |
artifact_name: github-pages |