This commit is contained in:
parent
db0c3490e1
commit
92510eb8d3
3 changed files with 77 additions and 22 deletions
27
.forgejo/workflows/deploy.yml.bak
Normal file
27
.forgejo/workflows/deploy.yml.bak
Normal file
|
@ -0,0 +1,27 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue