From 1a3cbfa43b5e2cbbefedfbb14260a828ee342d87 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 11 Sep 2024 21:48:39 -0700 Subject: [PATCH] old method of doing ssh setup and cop[ying of files --- .gitea/workflows/build-and-deploy.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index 41a563d..1bef818 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -17,11 +17,12 @@ jobs: uses: actions/checkout@v4 - name: Build website content run: hugo - - name: SCP Files with marketplace action - uses: appleboy/scp-action@v0.1.7 - with: - host: shockrah.xyz - username: ${{ secrets.USER }} - key: ${{ secrets.PRIVATE_KEY }} - source: public/ - target: /opt/nginx/test.shockrah.xyz + - 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 + +