From e9b2dccfce17b39c4df70f9b14fe62ef9ed02424 Mon Sep 17 00:00:00 2001 From: bengo <171782+gobengo@users.noreply.github.com> Date: Mon, 13 Nov 2023 11:14:13 -0800 Subject: [PATCH] ci: .github/workflows/api.yml when using wrangler-action passes with.vars so that the env vars like NEXT_PUBLIC_W3UP_LAUNCH_ get added to cf worker vars --- .github/workflows/api.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/api.yml b/.github/workflows/api.yml index c146fdb1b9..d8220734ce 100644 --- a/.github/workflows/api.yml +++ b/.github/workflows/api.yml @@ -76,6 +76,10 @@ jobs: apiToken: ${{ secrets.CF_TOKEN }} workingDirectory: 'packages/api' environment: 'staging' + vars: | + NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START + NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_ANNOUNCEMENT_START + NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_START - name: Test upload to staging run: | npm run build -w packages/client @@ -112,3 +116,7 @@ jobs: apiToken: ${{ secrets.CF_TOKEN }} workingDirectory: 'packages/api' environment: 'production' + vars: | + NEXT_PUBLIC_W3UP_LAUNCH_LIMITED_AVAILABILITY_START + NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_ANNOUNCEMENT_START + NEXT_PUBLIC_W3UP_LAUNCH_SUNSET_START