attempting with scp
Deploy / deploy (push) Failing after 9s

This commit is contained in:
Hamza Ahmed
2026-03-11 11:51:59 +00:00
parent 4f5eb0e44f
commit f640d2e403
+4 -6
View File
@@ -11,8 +11,8 @@ jobs:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Install pandoc and rsync - name: Install pandoc
run: sudo apt-get update && sudo apt-get install -y pandoc rsync run: apt-get update && apt-get install -y pandoc
- name: Generate HTML - name: Generate HTML
run: pandoc index.md -s -o index.html --css styles.css run: pandoc index.md -s -o index.html --css styles.css
@@ -23,11 +23,9 @@ jobs:
echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
- name: Deploy to server via rsync - name: Deploy to server via SCP
run: | run: |
rsync -avz --delete \ scp -P ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
-e "ssh -p ${{ secrets.SSH_PORT }} -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" \
--exclude='.git' \
index.html styles.css nginx.conf \ index.html styles.css nginx.conf \
${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/share/nginx/html/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/usr/share/nginx/html/