Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
iswbm committed Feb 20, 2022
1 parent 171c56c commit 297bd2f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ jobs:
SERVER_DESTINATION: ${{ secrets.WORK_HOME }} # 部署到目标文件夹
- name: Restart server # 第三步,重启服务
uses: appleboy/ssh-action@master
env:
WORK_HOME: ${{ secrets.WORK_HOME }}
with:
host: ${{ secrets.SSH_HOST }} # 下面三个配置与上一步类似
username: ${{ secrets.SSH_USERNAME }}
Expand All @@ -37,5 +39,4 @@ jobs:
script: |
cd $WORK_HOME
./rebuild.sh
env:
WORK_HOME: ${{ secrets.WORK_HOME }}
envs: WORK_HOME

0 comments on commit 297bd2f

Please sign in to comment.