Skip to content

Commit

Permalink
fix(workflows): frontend_cd - 빌드 환경에서 환경변수 파일 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaymyong66 committed Aug 4, 2024
1 parent 8c8d0f8 commit 6bd2790
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/frontend_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,14 @@ jobs:
with:
node-version: 20

- name: Create .env.production file
run: |
echo "REACT_APP_API_URL=${{ secrets.REACT_APP_API_URL }}" > ${{ env.frontend-directory }}/.env.production
echo "REACT_APP_BASE_URL=${{ secrets.REACT_APP_BASE_URL }}" >> ${{ env.frontend-directory }}/.env.production
- name: Set environment file permissions
run: chmod 644 ${{ env.frontend-directory }}/.env.production

- name: Install Dependencies
run: npm install
working-directory: ${{ env.frontend-directory }}
Expand Down Expand Up @@ -48,4 +56,3 @@ jobs:
run: |
aws s3 cp --recursive ${{ secrets.FRONT_DIRECTORY }} s3://techcourse-project-2024/code-zap
rm -rf ${{ secrets.FRONT_DIRECTORY }}

0 comments on commit 6bd2790

Please sign in to comment.