From c1b91b6d246b5ccce8cf30e9075facb8fb208b60 Mon Sep 17 00:00:00 2001 From: themelm Date: Sat, 29 Mar 2025 15:04:43 -0600 Subject: [PATCH] homepage action --- .forgejo/workflows/deploy.yml | 21 +++++++++++++++++++++ deploy_devon.sh | 6 +++--- 2 files changed, 24 insertions(+), 3 deletions(-) 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..023fc22 --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,21 @@ +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 + with: + host: ${{ secrets.HOST_ADDRESS }} + username: forgejo #$ {{ secrets.SSH_USER }} # + key: ${{ secrets.SSH_PRIVATE_KEY }} + script: | + ls + cd homeserver + ${{ secrets.SCRIPT }} diff --git a/deploy_devon.sh b/deploy_devon.sh index b0878a2..84fd8e6 100755 --- a/deploy_devon.sh +++ b/deploy_devon.sh @@ -1,7 +1,7 @@ #!/bin/sh -USER=devon -HOST=192.168.1.178 -DIR=/var/www/ # the directory where your website files should go +USER=forgejo +HOST=test1.melm.xyz +DIR=/srv/ # the directory where your website files should go hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public directory