Skip to content

Commit

Permalink
change how ci bash func excludeDefaultServiceVariables works
Browse files Browse the repository at this point in the history
  • Loading branch information
gobengo committed Nov 6, 2023
1 parent 8b7440a commit 7ffbbde
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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/[email protected]
id: cloudflare
Expand Down

0 comments on commit 7ffbbde

Please sign in to comment.