From f640d2e403d71d0975fed1c555d13ed8317f94fe Mon Sep 17 00:00:00 2001 From: Hamza Ahmed Date: Wed, 11 Mar 2026 11:51:59 +0000 Subject: [PATCH] attempting with scp --- .gitea/workflows/deploy.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 888adf0..5a62981 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -11,8 +11,8 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Install pandoc and rsync - run: sudo apt-get update && sudo apt-get install -y pandoc rsync + - name: Install pandoc + run: apt-get update && apt-get install -y pandoc - name: Generate HTML run: pandoc index.md -s -o index.html --css styles.css @@ -23,11 +23,9 @@ jobs: echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519 - - name: Deploy to server via rsync + - name: Deploy to server via SCP run: | - rsync -avz --delete \ - -e "ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \ - --exclude='.git' \ + scp -P ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \ index.html styles.css nginx.conf \ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/share/nginx/html/