From 95f147287262c2ad2e35dfd43f713bb9c2de2bf5 Mon Sep 17 00:00:00 2001 From: yummygyudon Date: Mon, 18 Nov 2024 16:15:05 +0900 Subject: [PATCH] =?UTF-8?q?[FEAT]=20Deploy=20=EC=8A=A4=ED=81=AC=EB=A6=BD?= =?UTF-8?q?=ED=8A=B8=20=EB=82=B4=20=ED=99=98=EA=B2=BD=EB=B3=80=EC=88=98=20?= =?UTF-8?q?=ED=8C=8C=EC=9D=BC=20=EC=83=9D=EC=84=B1=20Step=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/cd-dev.yml | 7 +++++++ .github/workflows/cd-prod.yml | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/.github/workflows/cd-dev.yml b/.github/workflows/cd-dev.yml index 14ce440..c8db0d9 100644 --- a/.github/workflows/cd-dev.yml +++ b/.github/workflows/cd-dev.yml @@ -23,6 +23,13 @@ job: - name: Install Dependencies run: npm ci + - name: Create Env File + env: + ENV_FILE: ${{ secrets.ENV_DEV }} + run: | + touch .env.dev + echo "$ENV_FILE" >> .env.dev + - name: Set AWS Credentials by export env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index a6b3edb..53981e0 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -23,6 +23,13 @@ job: - name: Install Dependencies run: npm ci + - name: Create Env File + env: + ENV_FILE: ${{ secrets.ENV_PROD }} + run: | + touch .env.prod + echo "$ENV_FILE" >> .env.prod + - name: Set AWS Credentials by export env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}