deploy api

This commit is contained in:
xuyue committed 2025-03-05 20:53:15 +08:00
1 parent 838a703023
commit 6d6c69cf37
1 file changed
+10
+10
View File
@@ -26,3 +26,13 @@ jobs:
SOURCE: dist/
REMOTE_USER: root
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