Skip to content

Commit

Permalink
No need to source bash for deploy command
Browse files Browse the repository at this point in the history
  • Loading branch information
komali2 committed Jul 5, 2023
1 parent 7345b84 commit 91dd8e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/

0 comments on commit 91dd8e9

Please sign in to comment.