homepage action
This commit is contained in:
parent
1f14489c78
commit
c1b91b6d24
2 changed files with 24 additions and 3 deletions
21
.forgejo/workflows/deploy.yml
Normal file
21
.forgejo/workflows/deploy.yml
Normal file
|
@ -0,0 +1,21 @@
|
|||
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
|
||||
with:
|
||||
host: ${{ secrets.HOST_ADDRESS }}
|
||||
username: forgejo #$ {{ secrets.SSH_USER }} #
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
script: |
|
||||
ls
|
||||
cd homeserver
|
||||
${{ secrets.SCRIPT }}
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/sh
|
||||
USER=devon
|
||||
HOST=192.168.1.178
|
||||
DIR=/var/www/ # the directory where your website files should go
|
||||
USER=forgejo
|
||||
HOST=test1.melm.xyz
|
||||
DIR=/srv/ # the directory where your website files should go
|
||||
|
||||
hugo && rsync -avz --delete public/ ${USER}@${HOST}:${DIR} # this will delete everything on the server that's not in the local public directory
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue