Skip to content

Commit d01cf69

Browse files
committed
ci: Removed rsync
1 parent c9c6205 commit d01cf69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
run: pdm mkdocs-build
2828

2929
- name: Install sshpass
30-
run: sudo apt-get update && sudo apt-get install -y sshpass rsync
30+
run: sudo apt-get update && sudo apt-get install -y sshpass
3131

3232
- name: Add VPS to known_hosts
3333
run: |
@@ -38,5 +38,5 @@ jobs:
3838
env:
3939
SSHPASS: ${{ secrets.SSH_PASSWORD }}
4040
run: |
41-
sshpass -e rsync -avz --delete ./site/ \
42-
${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }}:/var/www/vhosts/simonwaiblinger.de/rustico.simonwaiblinger.de
41+
tar -czf - -C ./site . | sshpass -e ssh ${{ secrets.SSH_USERNAME }}@${{ secrets.SSH_HOST }} \
42+
"cd /var/www/vhosts/simonwaiblinger.de/rustico.simonwaiblinger.de && rm -rf * && tar -xzf -"

0 commit comments

Comments
 (0)