deploy api

This commit is contained in:
2025-03-05 20:53:15 +08:00
parent 838a703023
commit 6d6c69cf37

View File

@@ -25,4 +25,14 @@ jobs:
ARGS: "-avzr --delete"
SOURCE: dist/
REMOTE_USER: root
TARGET: /root/WebPreview/build
TARGET: /root/WebPreview/build
- 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