Skip to content

Commit f9f26ce

Browse files
authored
Merge pull request #5 from ASRG/claude/intelligent-leakey
Fix deploy: use lftp for SFTP support
2 parents ab1869c + 0f31bf4 commit f9f26ce

1 file changed

Lines changed: 7 additions & 10 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,10 @@ jobs:
1616
rm -rf .git .github .claude .gitignore debug.html
1717
find . -name '*.md' -delete
1818
19-
- name: Deploy via SFTP
20-
uses: SamKirkland/FTP-Deploy-Action@v4.3.5
21-
with:
22-
server: ${{ secrets.SITEGROUND_HOST }}
23-
port: ${{ secrets.SITEGROUND_PORT }}
24-
username: ${{ secrets.SITEGROUND_USER }}
25-
password: ${{ secrets.SITEGROUND_PASSWORD }}
26-
protocol: sftp
27-
server-dir: ${{ secrets.SITEGROUND_REMOTE_PATH }}
28-
dangerous-clean-slate: true
19+
- name: Deploy via SFTP (lftp mirror)
20+
run: |
21+
sudo apt-get update && sudo apt-get install -y lftp
22+
lftp -u "${{ secrets.SITEGROUND_USER }},${{ secrets.SITEGROUND_PASSWORD }}" \
23+
-p ${{ secrets.SITEGROUND_PORT }} \
24+
-e "set sftp:auto-confirm yes; set net:max-retries 3; mirror --reverse --delete --verbose . ${{ secrets.SITEGROUND_REMOTE_PATH }}; quit" \
25+
sftp://${{ secrets.SITEGROUND_HOST }}

0 commit comments

Comments
 (0)