Skip to content

Commit

Permalink
Explicitly set ssh key for rsync
Browse files Browse the repository at this point in the history
  • Loading branch information
komali2 committed Jul 5, 2023
1 parent 197d26d commit 77c9a77
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 @@ -40,7 +40,7 @@ jobs:
- name: Write in api url
run: echo VUE_APP_API_URL="$API_URL" >> ${{ github.workspace }}/.env
- name: Send updated source to our VPS
run: rsync -rav --delete -e 'ssh -p 3732' ${{ github.workspace }}/ "$SSH_USERNAME"@"$SSH_HOST":/home/"$SSH_USERNAME"/src/game-remix-guesser-frontend/
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}" "cd src/game-remix-guesser-frontend && nvm use 16 && npm install && npm run build"
- name: Move build files to web directory
Expand Down

0 comments on commit 77c9a77

Please sign in to comment.