From df4ab8aa9572c9eea82fb025a3f6af0659c74242 Mon Sep 17 00:00:00 2001 From: vinu-deriv Date: Mon, 20 Jan 2025 15:19:15 +0400 Subject: [PATCH] fix: the env variables --- .github/workflows/deploy-preview.yml | 7 +++++++ .github/workflows/deploy-production.yml | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 9fa39ba..ebe3384 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -3,6 +3,7 @@ name: Deploy Preview on: pull_request: branches: [ master ] + types: [opened, synchronize, reopened] permissions: contents: read @@ -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 }} diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index e873162..30ac3a3 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -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 }}