Skip to content

Commit

Permalink
ci: .github/workflows/api.yml when using wrangler-action passes with.…
Browse files Browse the repository at this point in the history
…vars so that the env vars like NEXT_PUBLIC_W3UP_LAUNCH_ get added to cf worker vars
  • Loading branch information
gobengo committed Nov 13, 2023
1 parent 7320739 commit e9b2dcc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

0 comments on commit e9b2dcc

Please sign in to comment.