We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e54b8e2 commit 17dcac2Copy full SHA for 17dcac2
1 file changed
.github/workflows/deploy.yml
@@ -39,6 +39,16 @@ jobs:
39
restart.sh
40
target: "${{ secrets.SERVER_PROJECT_PATH }}"
41
42
+ # 设置 restart.sh 权限
43
+ - name: Set permissions for restart.sh
44
+ uses: appleboy/scp-action@v0.1.7
45
+ with:
46
+ host: ${{ secrets.SERVER_HOST }}
47
+ username: ${{ secrets.SERVER_USER }}
48
+ port: ${{ secrets.SERVER_PORT }}
49
+ key: ${{ secrets.SERVER_SSH_KEY }}
50
+ script: |
51
+ chmod 755 ${{ secrets.SERVER_PROJECT_PATH }}restart.sh
52
# 调用服务器的 restart.sh 重启项目
53
- name: Restart Spring Boot app
54
uses: appleboy/ssh-action@v1.1.0
0 commit comments