From 908578b212f78dea1aefc924deef93c6f85ff6f7 Mon Sep 17 00:00:00 2001 From: nostrdev-com <support@nostrdev.com> Date: Thu, 27 Mar 2025 12:55:29 +0300 Subject: [PATCH] chore: put .env creation into release build step --- .gitea/workflows/release-staging.yaml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/.gitea/workflows/release-staging.yaml b/.gitea/workflows/release-staging.yaml index d7b729e..ef63ab7 100644 --- a/.gitea/workflows/release-staging.yaml +++ b/.gitea/workflows/release-staging.yaml @@ -32,12 +32,6 @@ jobs: - name: Formatter check run: npm run formatter:check - - name: Create .env File - run: | - echo "PORT=${{ vars.STAGING_PORT }}" >> .env - echo "DB_CONN_STRING=${{ vars.DB_CONN_STRING }}" >> .env - echo "DB_NAME=${{ vars.DB_NAME }}" >> .env - - name: Create Build run: npm run build @@ -48,4 +42,4 @@ jobs: - name: Release Build run: | - ssh -o StrictHostKeyChecking=no api@51.161.134.20 'source ~/.nvm/nvm.sh; cd cs-backend && git pull && npm ci && npm run build && pm2 delete cellar-api && pm2 start npm --name cellar-api -- start' + ssh -o StrictHostKeyChecking=no api@51.161.134.20 'source ~/.nvm/nvm.sh; cd cs-backend && echo "PORT=${{ vars.STAGING_PORT }}" >> .env && echo "DB_CONN_STRING=${{ vars.DB_CONN_STRING }}" >> .env && echo "DB_NAME=${{ vars.DB_NAME }}" >> .env && git pull && npm ci && npm run build && pm2 delete cellar-api && pm2 start npm --name cellar-api -- start'