Skip to content

Commit b0ef0ee

Browse files
committed
ci(deploy): add preview-proxy worker to production deploy chain
1 parent 3ee48af commit b0ef0ee

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/deploy-workers.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,3 +119,25 @@ jobs:
119119
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
120120
workingDirectory: apps/webhooks-worker
121121
command: deploy
122+
123+
deploy-preview-proxy:
124+
runs-on: ubuntu-latest
125+
needs: deploy-webhooks
126+
environment: production
127+
steps:
128+
- uses: actions/checkout@v4
129+
- uses: pnpm/action-setup@v4
130+
with:
131+
version: 10.33.2
132+
- uses: actions/setup-node@v4
133+
with:
134+
node-version: 22
135+
cache: pnpm
136+
- run: pnpm install --frozen-lockfile
137+
- run: pnpm turbo build --filter=@cheatcode/preview-proxy
138+
- uses: cloudflare/wrangler-action@v3
139+
with:
140+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
141+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
142+
workingDirectory: apps/preview-proxy
143+
command: deploy

0 commit comments

Comments
 (0)