Skip to content

Commit

Permalink
Merge branch 'release' of https://github.com/IT-Cotato/COTATO-FE into…
Browse files Browse the repository at this point in the history
… release
  • Loading branch information
Donghyun Hwang committed Oct 6, 2024
2 parents 2677192 + bb3a3a1 commit 7bc918f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,21 @@ jobs:
- name: Check Node v
run: node -v

- name: Set Environment Variables
run: |
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
echo "REACT_APP_BASE_URL=${{ secrets.REACT_APP_BASE_URL }}" >> .env.production
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_SOCKET_URL }}" >> .env.production
elif [ "${GITHUB_REF}" == "refs/heads/release" ]; then
echo "REACT_APP_BASE_URL=${{ secrets.REACT_APP_QA_BASE_URL }}" >> .env.qa
echo "REACT_APP_SOCKET_URL=${{ secrets.REACT_APP_QA_SOCKET_URL }}" >> .env.qa
fi
env:
REACT_APP_BASE_URL: ${{ secrets.REACT_APP_BASE_URL }}
REACT_APP_SOCKET_URL: ${{ secrets.REACT_APP_SOCKET_URL }}
REACT_APP_QA_BASE_URL: ${{ secrets.REACT_APP_QA_BASE_URL }}
REACT_APP_QA_SOCKET_URL: ${{ secrets.REACT_APP_QA_SOCKET_URL }}

- name: Install Dependencies
run: yarn install --frozen-lockfile

Expand Down

0 comments on commit 7bc918f

Please sign in to comment.