From 0857d8edd62492a539a5476ed235cbe69d3c8cc1 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 11 Sep 2024 22:03:33 -0700 Subject: [PATCH] downgrading scp action version --- .gitea/workflows/build-and-deploy.yml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 1bef818..0e4b23c 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -17,12 +17,11 @@ jobs: uses: actions/checkout@v4 - name: Build website content run: hugo - - name: SSH Setup and Copy - run: | - eval $(ssh-agent -s) \ - echo "${{ secrets.PRIVATE_KEY }}" | ssh-add - > /dev/null \ - mkdir -p ~/.ssh \ - chmod 0700 ~/.ssh \ - scp -o UserKnownHostsFile=/dev/null -r public/ $ssh_target:$remote_path - - + - name: Copy using scp-action + uses: appleboy/scp-action@v0.1.3 + with: + host: shockrah.xyz + username: html-deployer + key: ${{ secrets.PRIVATE_KEY }} + source: public/ + target: /opt/nginx/test.shockrah.xyz