Wire visual explainer marginalia into example pages #3
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: Preview viz | |
| on: | |
| push: | |
| branches: | |
| - claude/tuftean-marginalia-viz-TB0fw | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: preview-viz | |
| cancel-in-progress: true | |
| jobs: | |
| upload-preview: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: uv sync --all-groups | |
| - name: Build generated assets | |
| run: make build | |
| - name: Upload Cloudflare Preview | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| run: | | |
| uv run pywrangler preview \ | |
| --name viz \ | |
| --message "${{ github.sha }}" \ | |
| --json |