homepage action

This commit is contained in:
themelm 2025-03-29 15:04:43 -06:00
parent 1f14489c78
commit c1b91b6d24
2 changed files with 24 additions and 3 deletions

View file

@ -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 }}

View file

@ -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