From 77c9a77d552d656f80804ba771f8e4bd07f3326b Mon Sep 17 00:00:00 2001 From: Caleb Rogers Date: Wed, 5 Jul 2023 15:52:19 +0800 Subject: [PATCH] Explicitly set ssh key for rsync --- .github/workflows/deploy-prod.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-prod.yml b/.github/workflows/deploy-prod.yml index 4b7e4ea..10d23f6 100644 --- a/.github/workflows/deploy-prod.yml +++ b/.github/workflows/deploy-prod.yml @@ -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