From 7ffbbdece2278f981b432f32df395b78bc324269 Mon Sep 17 00:00:00 2001 From: bengo <171782+gobengo@users.noreply.github.com> Date: Mon, 6 Nov 2023 15:42:22 -0800 Subject: [PATCH] change how ci bash func excludeDefaultServiceVariables works --- .github/workflows/deploy.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 8fad9b6..5189cc8 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -26,7 +26,7 @@ jobs: # omit these because they are added manually in the next step function excludeDefaultServiceVariables() { - cat - | grep -v NEXT_PUBLIC_SERVICE_ | grep -v NEXT_PUBLIC_W3UP_PROVIDER + cat - | grep -v NEXT_PUBLIC_W3UP_SERVICE_ } # set .env from .env.tpl with exclusions @@ -39,10 +39,8 @@ jobs: # as long as this uses https://github.com/cloudflare/next-on-pages/blob/dc529d7efa8f8568ea8f71b5cdcf78df89be6c12/packages/next-on-pages/bin/index.js, # env vars won't get passed through to wrangler, so if wrangler will need them, write them to .env like the previous step - run: pnpm pages:build - - run: | - cat .env - grep -o ".\{0,50\}staging.web3.storage.\{0,50\}" -R .vercel - cat .vercel/output/functions/index.func/.env + - run: cat .env + - run: grep -o ".\{0,50\}staging.web3.storage.\{0,50\}" -R .vercel - name: Deploy preview build to Cloudflare Pages uses: mathiasvr/command-output@v1.1.0 id: cloudflare