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"