From bd5409ae5af15047595676100f88133c045f3129 Mon Sep 17 00:00:00 2001 From: allison <67673392+Allybe@users.noreply.github.com> Date: Fri, 28 Aug 2026 12:42:16 -0500 Subject: [PATCH] restart service on deploymenet --- .gitea/workflows/deploy.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index 25aa620..23eff44 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -37,4 +37,13 @@ jobs: password: ${{ secrets.SERVER_PASSWORD }} source: "target/notifier.jar" target: "/opt/notifier" - strip_components: 1 \ No newline at end of file + strip_components: 1 + + - name: Restart Service on Server + uses: appleboy/ssh-action@master + with: + host: ${{ secrets.SERVER_IP }} + username: ${{ secrets.SERVER_USERNAME }} + password: ${{ secrets.SERVER_PASSWORD }} + script: | + sudo systemctl restart notifier \ No newline at end of file