test workflow

This commit is contained in:
2025-03-04 22:35:58 +08:00
parent 67419dffca
commit 59388fd44d

23
.github/workflows/depley.yaml vendored Normal file
View File

@@ -0,0 +1,23 @@
name: Deploy
on:
push:
branches:
- main
jobs:
deploy-and-run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: appleboy/ssh-action@v1.2.1
with:
host: ${{ secrets.HOST }}
username: root
key: ${{ secrets.Key }}
script: |
cd ~/WebPreview/api
git pull
sh ~/WebPreview/run.sh