Skip to content

Commit

Permalink
fix: the env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
vinu-deriv committed Jan 20, 2025
1 parent 2fc0937 commit df4ab8a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Deploy Preview
on:
pull_request:
branches: [ master ]
types: [opened, synchronize, reopened]

permissions:
contents: read
Expand Down Expand Up @@ -150,6 +151,12 @@ jobs:
id: deploy
timeout-minutes: 10
uses: ./.github/actions/deploy/vercel/development
env:
# Pass all repository secrets to the action
REACT_APP_WS_PORT: ${{ secrets.REACT_APP_WS_PORT }}
REACT_APP_WS_URL: ${{ secrets.REACT_APP_WS_URL }}
REACT_APP_OAUTH_URL: ${{ secrets.REACT_APP_OAUTH_URL }}
REACT_APP_CURRENT_ENVIRONMENT: preview
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ jobs:
id: deploy
timeout-minutes: 10
uses: ./.github/actions/deploy/vercel/production
env:
# Pass all repository secrets to the action
REACT_APP_WS_PORT: ${{ secrets.REACT_APP_WS_PORT }}
REACT_APP_WS_URL: ${{ secrets.REACT_APP_WS_URL }}
REACT_APP_OAUTH_URL: ${{ secrets.REACT_APP_OAUTH_URL }}
REACT_APP_CURRENT_ENVIRONMENT: production
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
Expand Down

0 comments on commit df4ab8a

Please sign in to comment.