Merge pull request 'feat: auto update script' (#3) from dev into main
Reviewed-on: #3
This commit is contained in:
commit
ad1c360aed
22
.gitea/workflows/auto_update.yaml
Normal file
22
.gitea/workflows/auto_update.yaml
Normal file
@ -0,0 +1,22 @@
|
||||
name: Deploy on merge to main
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run command on remote server
|
||||
uses: appleboy/ssh-action@v0.1.10
|
||||
with:
|
||||
host: ${{ secrets.SSH_HOST }}
|
||||
username: ${{ secrets.SSH_USER }}
|
||||
key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
port: ${{ secrets.SSH_PORT }}
|
||||
script: |
|
||||
pull_site
|
Loading…
Reference in New Issue
Block a user