workflowfix5
Some checks failed
Auto Pull / deploy (push) Failing after 0s

This commit is contained in:
themelm 2025-03-29 15:27:16 -06:00
parent 8a213714a1
commit 4acdb4f249

View file

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