From 522f6080f2d22070a426d5faff8b1f1021eb3c1c Mon Sep 17 00:00:00 2001 From: Santhoshkumar <117272529+Santhosh-testsigma@users.noreply.github.com> Date: Mon, 25 Sep 2023 13:56:46 +0530 Subject: [PATCH] fix: Removing env file if already exists in prod build file --- .github/workflows/cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 66532889..ca2d2b8d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,6 +21,7 @@ jobs: run: npm install --ignore-scripts=false --verbose sharp@0.30.7 --unsafe-perm --force - name: 'Create env file' run: | + rm -rf .env touch .env echo BUCKET_NAME=${{ secrets.BUCKET_NAME }} >> .env echo HOST_NAME=${{ secrets.HOST_NAME }} >> .env