Homepage/.forgejo/workflows/deploy.yml.bak
themelm 92510eb8d3
Some checks are pending
publish / publish (push) Waiting to run
new workflow
2025-05-25 01:53:55 -07:00

27 lines
731 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
git fetch
git reset --hard HEAD
git merge '@{u}'
hugo && rsync -Oavz --no-p --delete public/ /var/www/melm.xyz