From 8ff0ac1102e166a0e47c2a165e86f9be8b903068 Mon Sep 17 00:00:00 2001 From: Yosvel Quintero Date: Sun, 23 Jun 2024 18:52:32 +0700 Subject: [PATCH] chore: Update build process to create .env file --- .github/workflows/build.yaml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 9dfb0342..1044c85a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -9,10 +9,6 @@ jobs: - name: Checkout uses: actions/checkout@v2 - - name: Create .env file - run: | - echo "${{ secrets.ENV_FILE_CONTENT }}" > .env - - name: Setup NodeJS uses: actions/setup-node@v1 with: @@ -21,6 +17,10 @@ jobs: - name: Install Dependencies run: npm ci --legacy-peer-deps + - name: Create .env file + run: | + echo "${{ secrets.ENV_FILE_CONTENT }}" > .env + - name: Build run: npm run console:build:prod @@ -40,6 +40,10 @@ jobs: echo ::set-output name=version_tag::$(echo ${GITHUB_REF#refs/*/}) echo ::set-output name=repo_name::$(echo ${GITHUB_REPOSITORY#*/*}) + - name: Create .env file + run: | + echo "${{ secrets.ENV_FILE_CONTENT }}" > .env + - name: Build uses: docker/build-push-action@v2 with: