From 0e0a70fcbd698d9af91b5b6508e050206722e82e Mon Sep 17 00:00:00 2001 From: Kamran Ahmed Date: Mon, 8 Apr 2024 05:31:30 +0100 Subject: [PATCH] Exclude .git --- .github/workflows/rsync-ssr.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/rsync-ssr.yml b/.github/workflows/rsync-ssr.yml index 86d341099..91968a4e3 100644 --- a/.github/workflows/rsync-ssr.yml +++ b/.github/workflows/rsync-ssr.yml @@ -47,7 +47,7 @@ jobs: ssh-private-key: ${{ secrets.EC2_PRIVATE_KEY }} - name: Deploy app to EC2 run: | - rsync -avz --info=progress2 --no-i-r --exclude "configuration" -e "ssh -o StrictHostKeyChecking=no" -p ./ ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }}:/var/www/v2.roadmap.sh/ + rsync -avz --info=progress2 --no-i-r --exclude ".git" --exclude "configuration" -e "ssh -o StrictHostKeyChecking=no" -p ./ ${{ secrets.EC2_USERNAME }}@${{ secrets.EC2_HOST }}:/var/www/v2.roadmap.sh/ - name: Restart PM2 uses: appleboy/ssh-action@master with: