Skip to content

Commit 47a82ea

Browse files
committed
chore(deploy): 更新部署脚本权限设置方式
1 parent 17dcac2 commit 47a82ea

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,15 @@ jobs:
4141

4242
# 设置 restart.sh 权限
4343
- name: Set permissions for restart.sh
44-
uses: appleboy/scp-action@v0.1.7
44+
uses: appleboy/ssh-action@v1.1.0
4545
with:
4646
host: ${{ secrets.SERVER_HOST }}
4747
username: ${{ secrets.SERVER_USER }}
4848
port: ${{ secrets.SERVER_PORT }}
4949
key: ${{ secrets.SERVER_SSH_KEY }}
5050
script: |
5151
chmod 755 ${{ secrets.SERVER_PROJECT_PATH }}restart.sh
52+
5253
# 调用服务器的 restart.sh 重启项目
5354
- name: Restart Spring Boot app
5455
uses: appleboy/ssh-action@v1.1.0

0 commit comments

Comments
 (0)