Skip to content

Commit e8475c2

Browse files
committed
Update viz preview on branch commits
1 parent bff9b8b commit e8475c2

1 file changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/preview-viz.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Preview viz
2+
3+
on:
4+
push:
5+
branches:
6+
- claude/tuftean-marginalia-viz-TB0fw
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: preview-viz
14+
cancel-in-progress: true
15+
16+
jobs:
17+
upload-preview:
18+
runs-on: ubuntu-latest
19+
steps:
20+
- uses: actions/checkout@v4
21+
- uses: astral-sh/setup-uv@v5
22+
- uses: actions/setup-python@v5
23+
with:
24+
python-version: '3.13'
25+
- name: Install dependencies
26+
run: uv sync --all-groups
27+
- name: Build generated assets
28+
run: make build
29+
- name: Upload Cloudflare Preview
30+
env:
31+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
32+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
33+
run: |
34+
uv run pywrangler preview \
35+
--name viz \
36+
--message "${{ github.sha }}" \
37+
--json

0 commit comments

Comments
 (0)