Skip to content

Commit ed78f3e

Browse files
committed
chore: add demo ci
closes #671
1 parent b464ba9 commit ed78f3e

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/demo.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: demo
2+
on:
3+
push:
4+
branches:
5+
- master
6+
paths:
7+
- "apps/synapse-playground/**"
8+
- .github/workflows/demo.yml
9+
workflow_dispatch:
10+
workflow_call:
11+
permissions:
12+
contents: read
13+
concurrency:
14+
group: demo
15+
cancel-in-progress: false
16+
jobs:
17+
publish:
18+
runs-on: ubuntu-latest
19+
if: github.ref_name == 'master'
20+
steps:
21+
- uses: actions/checkout@v6
22+
- uses: pnpm/action-setup@v4
23+
- uses: actions/setup-node@v6
24+
with:
25+
node-version: lts/*
26+
- run: pnpm install
27+
- run: pnpm run build
28+
- run: pnpm -r --filter synapse-playground run build
29+
- run: pnpx wrangler deploy --cwd synapse-playground --env production
30+
env:
31+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
32+
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}

0 commit comments

Comments
 (0)