Skip to content

Commit

Permalink
Added volt-deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
NickNackGus committed Oct 8, 2023
1 parent f040bb7 commit 45ab26a
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,19 @@ tasks.create("stage-deploy") {
}
}

tasks.create("volt-deploy") {
val shadowJar by tasks.named<ShadowJar>("shadowJar")
dependsOn(shadowJar)
doLast {
ssh.runSessions {
session(basicssh) {
put(shadowJar.archiveFile.get().getAsFile(), "/home/epic/volt/m12/server_config/plugins")
execute("cd /home/epic/volt/m12/server_config/plugins && rm -f LibraryOfSouls.jar && ln -s " + shadowJar.archiveFileName.get() + " LibraryOfSouls.jar")
}
}
}
}

tasks.create("build-deploy") {
val shadowJar by tasks.named<ShadowJar>("shadowJar")
dependsOn(shadowJar)
Expand Down

0 comments on commit 45ab26a

Please sign in to comment.