From ce1e7139495607d6b6cf551f04d62490816ab2da Mon Sep 17 00:00:00 2001 From: shockrah Date: Tue, 3 Sep 2024 16:42:18 -0700 Subject: [PATCH] Trying out the apple boy gh action --- .gitea/workflows/build-and-deploy.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/build-and-deploy.yml b/.gitea/workflows/build-and-deploy.yml index ed8f1b6..4dc20f3 100644 --- a/.gitea/workflows/build-and-deploy.yml +++ b/.gitea/workflows/build-and-deploy.yml @@ -16,5 +16,13 @@ jobs: run: hugo - name: Check file content is present run: pwd && ls -lRt public/ - - name: Check if scp is available - run: scp --version + - name: SCP Files in public up to the remote ( prolly us ) server + uses: appleboy/scp-action@master + env: + HOST: ${{ secrets.host }} + USERNAME: ${{ secrets.user }} + PORT: ${{ secrets.port }} + KEY: ${{ secrets.private_key }} + with: + source: "public" + target: "/opt/nginx/test.shockrah.xyz"