mirror of
https://github.com/continew-org/continew-admin-ui.git
synced 2025-09-07 10:57:08 +08:00
ci: 修改部署脚本
This commit is contained in:
6
.github/workflows/deploy.yml
vendored
6
.github/workflows/deploy.yml
vendored
@@ -40,9 +40,9 @@ jobs:
|
||||
username: ${{ secrets.SERVER_USERNAME }}
|
||||
password: ${{ secrets.SERVER_PASSWORD }}
|
||||
source: ./dist/*
|
||||
target: /tmp/html
|
||||
target: ${{ secrets.SERVER_TMP_PATH }}
|
||||
strip_components: 1
|
||||
# 7、重启 Nginx
|
||||
# 7、更新部署文件
|
||||
- name: Restart
|
||||
uses: appleboy/ssh-action@master
|
||||
with:
|
||||
@@ -52,5 +52,5 @@ jobs:
|
||||
password: ${{ secrets.SERVER_PASSWORD }}
|
||||
script: |
|
||||
rm -rf ${{ secrets.SERVER_PATH }}/*
|
||||
mv /tmp/html/* ${{ secrets.SERVER_PATH }}
|
||||
mv ${{ secrets.SERVER_TMP_PATH }}/* ${{ secrets.SERVER_PATH }}
|
||||
chmod -R 777 ${{ secrets.SERVER_PATH }}
|
||||
|
Reference in New Issue
Block a user