chore: put .env creation into release build step
This commit is contained in:
parent
c095bc887f
commit
908578b212
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user