diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 330767d..10d23f6 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -42,6 +42,6 @@ jobs: - name: Send updated source to our VPS run: rsync -rav --delete -e 'ssh -i ~/.ssh/id_rsa -p 3732' ${{ github.workspace }}/ "$SSH_USERNAME"@"$SSH_HOST":/home/"$SSH_USERNAME"/src/game-remix-guesser-frontend/ - name: Build new prod - run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "source ~/.bashrc && cd src/game-remix-guesser-frontend && nvm use 16 && npm install && npm run build" + run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "cd src/game-remix-guesser-frontend && nvm use 16 && npm install && npm run build" - name: Move build files to web directory run: ssh -p 3732 "${SSH_USERNAME}"@"${SSH_HOST}" "cd src/game-remix-guesser-frontend && cp -a build/. /home/www-data/grg/