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: