Skip to content

Commit 200ea8e

Browse files
committed
ci: bootstrap the Alchemy state store before deploying the relay
1 parent e3d1d56 commit 200ea8e

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy-relay.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,16 @@ jobs:
5959
args:
6060
- --filter=t3code-relay...
6161
62+
# Alchemy keeps its resource state in a Cloudflare Worker that has to
63+
# exist before the first apply. Without `force` this adopts an existing
64+
# store and refreshes its credentials, so running it every deploy is a
65+
# no-op after the first and survives the store being deleted.
66+
- name: Bootstrap Alchemy state store
67+
working-directory: infra/relay
68+
run: node node_modules/alchemy/bin/cli.js cloudflare bootstrap
69+
env:
70+
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
71+
6272
- name: Deploy production relay stage
6373
id: deploy
6474
run: vp run --filter t3code-relay deploy --stage prod --yes --github-output

0 commit comments

Comments
 (0)