2025-03-29 15:27:16 -06:00
|
|
|
name: Auto Pull
|
|
|
|
|
|
|
|
on: [push]
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - 'main'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
runs-on: docker
|
|
|
|
steps:
|
2025-03-29 16:02:36 -06:00
|
|
|
# - run: apt update && apt install -y openssh-client git hugo rsync
|
2025-03-29 15:27:16 -06:00
|
|
|
- name: SSH Deploy
|
2025-03-29 15:30:42 -06:00
|
|
|
#run: apt update && apt install -y openssh-client git hugo rsync
|
2025-03-29 15:27:16 -06:00
|
|
|
uses: https://github.com/appleboy/ssh-action@v1
|
2025-03-29 15:29:13 -06:00
|
|
|
#
|
2025-03-29 15:27:16 -06:00
|
|
|
with:
|
|
|
|
host: ${{ secrets.HOST_ADDRESS }}
|
|
|
|
username: forgejo #$ {{ secrets.SSH_USER }} #
|
|
|
|
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
|
|
script: |
|
|
|
|
ls
|
|
|
|
cd Homepage
|
2025-03-29 16:02:36 -06:00
|
|
|
hugo && rsync -Oavz --delete public/ /var/www/
|