Skip to content

Commit

Permalink
feat(ci/deploy): Add restart API service step
Browse files Browse the repository at this point in the history
This commit adds a new step to the deploy workflow in `.github/workflows/deploy-preview.yml`. The new step is responsible for restarting the API service(s) after deployment.
  • Loading branch information
SakuraIsayeki committed Feb 8, 2024
1 parent c001613 commit 4e6be8e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ jobs:
run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts

- name: Deploy with rsync
run: rsync -rvmzOE . ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_DEPLOYPATH }}
run: rsync -rvmzOE . ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.SSH_DEPLOYPATH }}

- name: Restart API service(s)
run: ssh ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }} ${{ vars.SSH_CMD_RESTART_API }}

0 comments on commit 4e6be8e

Please sign in to comment.