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