Update deploy action
Some checks failed
Build and Deploy MkDocs / build-deploy (push) Failing after 38s

This commit is contained in:
Skylar Ittner 2026-02-13 13:39:36 -07:00
parent bb09b24c53
commit de02359c41

View File

@ -36,15 +36,12 @@ jobs:
mkdir -p ~/.ssh
echo "${{ secrets.DEPLOY_SSH_KEY }}" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -p ${{
secrets.DEPLOY_PORT || 22
}} ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
ssh-keyscan ${{ secrets.DEPLOY_HOST }} >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: |
rsync -avz --delete \
--filter='P error/' \
--filter='P stats/' \
-e "ssh -v -p ${{ secrets.DEPLOY_PORT || 22 }}" \
site/ \
${{ secrets.DEPLOY_USER }}@${{ secrets.DEPLOY_HOST }}:/var/www/dev.postalpoint.app/web