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 }}