From c40eb2477e56e42d9306b60a2dcf1e1198a905ac Mon Sep 17 00:00:00 2001 From: Silas Bartha Date: Sat, 15 Mar 2025 17:43:07 -0400 Subject: [PATCH] added scp deployment --- .gitea/workflows/deploy.yaml | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 762c498..734fa67 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -10,16 +10,11 @@ jobs: - name: Check out repository code uses: actions/checkout@v4 - run: zola build - - uses: christopherhx/gitea-upload-artifact@v4 - with: - name: public - path: public - Deploy: - container: alpine:latest - steps: - - uses: christopherhx/gitea-download-artifact@v4 - with: - name: public - path: public - - run: ls public + - name: Write SSH keys + run: | + install -m 600 -D /dev/null ~/.ssh/id_rsa + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_rsa + ssh-keyscan -H soaos.dev > ~/.ssh/known_hosts + - name: Copy built site to server + run: scp -sr public git@soaos.dev:/var/www/soaos.dev