Homepage/.forgejo/workflows/deploy.yml
themelm eaeabf3bbf
Some checks failed
Auto Pull / deploy (push) Failing after 4s
workflowfix13
2025-03-29 16:02:36 -06:00

24 lines
631 B
YAML

name: Auto Pull
on: [push]
# push:
# branches:
# - 'main'
jobs:
deploy:
runs-on: docker
steps:
# - run: apt update && apt install -y openssh-client git hugo rsync
- name: SSH Deploy
#run: apt update && apt install -y openssh-client git hugo rsync
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 Homepage
hugo && rsync -Oavz --delete public/ /var/www/