From e1aa40dd887bf51a564326635ea112244e356a7b Mon Sep 17 00:00:00 2001 From: John Bowdre Date: Tue, 27 Feb 2024 19:21:46 -0600 Subject: [PATCH] separate ssh-keyscan and rsync tasks --- .github/workflows/deploy-to-prod.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-to-prod.yml b/.github/workflows/deploy-to-prod.yml index db76ece..cf8d707 100644 --- a/.github/workflows/deploy-to-prod.yml +++ b/.github/workflows/deploy-to-prod.yml @@ -52,9 +52,12 @@ jobs: oauth-client-id: ${{ secrets.TS_API_CLIENT_ID }} oauth-secret: ${{ secrets.TS_API_CLIENT_SECRET }} tags: ${{ secrets.TS_TAG }} - - name: Deploy GMI to Agate + - name: Cache SSH known hosts run: | mkdir -p ~/.ssh ssh-keyscan -H ${{ secrets.GMI_HOST }} >> ~/.ssh/known_hosts - rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ ${{ secrets.GMI_USER}}@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }} + - name: Deploy GMI to Agate + run: | + which rsync + rsync -avz --delete --exclude='*.html' --exclude='*.css' --exclude='*.js' -e ssh public/ ${{ secrets.GMI_USER }}@${{ secrets.GMI_HOST }}:${{ secrets.GMI_CONTENT_PATH }}