From 023b9f8108de3ff89c52975c392fd620035d77dd Mon Sep 17 00:00:00 2001 From: jihun Date: Sat, 6 Apr 2024 19:10:42 +0900 Subject: [PATCH] =?UTF-8?q?deploy:=20api=20=ED=99=98=EA=B2=BD=EB=B3=80?= =?UTF-8?q?=EC=88=98=20=EC=85=8B=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 1 - .github/workflows/deploy_front.yaml | 7 ++++++- 2 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 .env.production diff --git a/.env.production b/.env.production deleted file mode 100644 index 2f6f0bbd..00000000 --- a/.env.production +++ /dev/null @@ -1 +0,0 @@ -VITE_API_KEY= "/" \ No newline at end of file diff --git a/.github/workflows/deploy_front.yaml b/.github/workflows/deploy_front.yaml index 440dcfd6..e3d04f1e 100644 --- a/.github/workflows/deploy_front.yaml +++ b/.github/workflows/deploy_front.yaml @@ -18,7 +18,12 @@ jobs: with: node-version: 18 cache: 'npm' - + # Github Repository Secrets를 통해 환경 변수 파일을 생성합니다. + - name: Generate Environment Variables File for Production + run: | + echo "REACT_APP_DOMAIN=$REACT_APP_DOMAIN" >> .env.production + env: + REACT_APP_DOMAIN: ${{ secrets.VITE_API_KEY }} - name: Install dependencies run: npm install --force