Skip to content

Commit 10bb906

Browse files
committed
restate deploy fix
1 parent 8ed691b commit 10bb906

File tree

3 files changed

+5
-89
lines changed

3 files changed

+5
-89
lines changed

.github/workflows/restate_cd.yaml

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
name: Deploy Restate Worker
2-
31
on:
42
workflow_dispatch:
53
push:
@@ -21,26 +19,21 @@ jobs:
2119
node-version: 22
2220
cache: pnpm
2321
- run: pnpm install --frozen-lockfile
24-
25-
- name: Build & Deploy Worker
26-
uses: cloudflare/wrangler-action@v3
22+
- uses: cloudflare/wrangler-action@v3
2723
id: deploy
2824
with:
2925
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
3026
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
3127
workingDirectory: apps/restate
28+
packageManager: pnpm
3229
command: versions upload --message "Deployed via GitHub Actions - commit ${{ github.sha }}"
33-
34-
- name: Get deployment URL
35-
id: get-url
30+
- id: get-url
3631
env:
3732
WRANGLER_OUTPUT: ${{ steps.deploy.outputs.command-output }}
3833
run: |
39-
URL=$(echo "$WRANGLER_OUTPUT" | awk '/Version Preview URL:/ {gsub(/.*Version Preview URL:/, ""); print $1}')
34+
URL=$(echo "$WRANGLER_OUTPUT" | awk '/Version Preview URL:/ {gsub(/.*Version Preview URL: /, ""); print}')
4035
echo "deployment-url=$URL" >> $GITHUB_OUTPUT
41-
42-
- name: Register Restate deployment
43-
env:
36+
- env:
4437
RESTATE_ADMIN_URL: ${{ secrets.RESTATE_ADMIN_URL }}
4538
RESTATE_AUTH_TOKEN: ${{ secrets.RESTATE_AUTH_TOKEN }}
4639
run: npx -y @restatedev/restate deployment register -y ${{ steps.get-url.outputs.deployment-url }}

apps/web/src/env.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ export const env = createEnv({
3030
VITE_SUPABASE_ANON_KEY: z.string().min(1),
3131
VITE_POSTHOG_API_KEY: isDev ? z.string().optional() : z.string().min(1),
3232
VITE_POSTHOG_HOST: z.string().default("https://us.i.posthog.com"),
33-
VITE_RESTATE_INGRESS_URL: z.string().default("http://localhost:8080"),
3433
},
3534

3635
runtimeEnv: { ...process.env, ...import.meta.env },

apps/web/src/utils/restate.ts

Lines changed: 0 additions & 76 deletions
This file was deleted.

0 commit comments

Comments
 (0)