Skip to content

Commit

Permalink
ci(github-actions): decouple service restart from code updates
Browse files Browse the repository at this point in the history
Also fixed the systemd service unit name because it pointing to the wrong service.
technically copied from the leeksbot repo for context.

Signed-off-by: Andrei Jiroh Halili <[email protected]>
  • Loading branch information
ajhalili2006 authored Feb 1, 2025
1 parent 99d7507 commit 83fc227
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,7 @@ jobs:
ssh nest git -C /home/ajhalili2006/git/hcb-explorer-discord pull
ssh nest cp -v /home/ajhalili2006/git/hcb-explorer-discord/src/lib/hcb-explorer-discordbot-nest.service /home/ajhalili2006/.config/systemd/user
ssh nest bash -c "set -x; cd /home/ajhalili2006/git/hcb-explorer-discord && npm i"
- name: Reload systemd-user daemon and restart
run: |
ssh nest systemctl --user daemon-reload
ssh nest systemctl --user start leeksbot-nest
ssh nest systemctl --user restart hcb-explorer-discordbot-nest.service

0 comments on commit 83fc227

Please sign in to comment.