From 91f05d9824c59cddfef368ece319b860def97762 Mon Sep 17 00:00:00 2001 From: Lewis Dale Date: Thu, 7 Mar 2024 14:02:57 +0000 Subject: [PATCH] Try to use scp to copy the built site to the server --- .gitea/workflows/build-and-copy.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-copy.yaml b/.gitea/workflows/build-and-copy.yaml index 42a78ef..54a3ac7 100644 --- a/.gitea/workflows/build-and-copy.yaml +++ b/.gitea/workflows/build-and-copy.yaml @@ -19,5 +19,7 @@ jobs: env: NODE_ENV: production OMNIVORE_API_KEY: ${{ secrets.OMNIVORE_API_KEY }} - - \ No newline at end of file + - name: Create ssh key + run: mkdir ~/.ssh && echo "${{ secrets.SSH_KEY }}" >> ~/.ssh/id_rsa + - name: Copy _site to prod + run: scp -rp _site/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:/var/www/html \ No newline at end of file