From 10f42d5a7251afdd0cc09063d1e8fb7724678872 Mon Sep 17 00:00:00 2001 From: Felix <8057646+GoliathLabs@users.noreply.github.com> Date: Sun, 5 Jan 2025 13:37:52 -0800 Subject: [PATCH] fix: allow rsa hostkeys --- .github/workflows/deploy.yml | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index d13202e..d2e7bb1 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -33,14 +33,13 @@ jobs: - name: Verify _site directory run: ls -al ${{ github.workspace }}/_site - - name: Deploy via SSH and rsync - env: - DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }} - run: | - mkdir -p ~/.ssh - echo "$DEPLOY_KEY" > ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa - ssh-keyscan -H ${{ matrix.target }}.ext.ffmuc.net >> ~/.ssh/known_hosts - rsync -avzvr --delete \ - ${{ github.workspace }}/_site/ \ - deploy-ffmuc@${{ matrix.target }}.ext.ffmuc.net:/srv/www/ffmuc.net/ + - name: Deploy via rsync + uses: burnett01/rsync-deployments@5.2 + with: + switches: -avzr --delete + path: ${{ github.workspace }}/_site/ + remote_path: /srv/www/ffmuc.net/ + remote_host: ${{ matrix.target }}.ext.ffmuc.net + remote_user: deploy-ffmuc + legacy_allow_rsa_hostkeys: "true" + remote_key: ${{ secrets.DEPLOY_KEY }}