From d354821881b765e751dc5516a1b082ef7250f42a Mon Sep 17 00:00:00 2001 From: kageru Date: Thu, 14 Nov 2019 15:30:52 +0100 Subject: [PATCH] Minor changes to deployment process --- check.sh | 2 +- deploy.sh | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/check.sh b/check.sh index 38b755e..75be7bf 100755 --- a/check.sh +++ b/check.sh @@ -1,2 +1,2 @@ #!/bin/sh -ktlint --disabled_rules import-ordering,no-wildcard-imports +ktlint --disabled_rules import-ordering,no-wildcard-imports && gradle test diff --git a/deploy.sh b/deploy.sh index 9110500..0a0dff6 100755 --- a/deploy.sh +++ b/deploy.sh @@ -1,6 +1,4 @@ #!/bin/sh -if ./check.sh && gradle test; then - gradle shadowjar - scp build/libs/moe.kageru.kagebot-0.1-all.jar lain:/home/selphybot/bot.jar +if ./check.sh; then ssh lain sudo systemctl restart selphybot.service fi