From 4acdb4f249a618c78ba9150fddfae3d9677855c1 Mon Sep 17 00:00:00 2001 From: themelm Date: Sat, 29 Mar 2025 15:27:16 -0600 Subject: [PATCH] workflowfix5 --- .forgejo/workflows/deploy.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .forgejo/workflows/deploy.yml diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..4693803 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,23 @@ +name: Auto Pull + +on: [push] +# push: +# branches: +# - 'main' + +jobs: + deploy: + runs-on: docker + steps: + - name: SSH Deploy + uses: https://github.com/appleboy/ssh-action@v1 + run: apt update && apt install -y openssh-client git hugo rsync + with: + host: ${{ secrets.HOST_ADDRESS }} + username: forgejo #$ {{ secrets.SSH_USER }} # + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + ls + cd Homepage + apt update && apt install -y hugo rsync git + hugo && rsync -avz --delete public/ forgejo@192.168.1.145:/var/www/