Skip to content

Commit 17dcac2

Browse files
committed
feat(deploy): 添加 restart.sh 权限设置步骤
1 parent e54b8e2 commit 17dcac2

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ jobs:
3939
restart.sh
4040
target: "${{ secrets.SERVER_PROJECT_PATH }}"
4141

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
4252
# 调用服务器的 restart.sh 重启项目
4353
- name: Restart Spring Boot app
4454
uses: appleboy/ssh-action@v1.1.0

0 commit comments

Comments
 (0)