summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-02-06 22:14:17 -0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-02-06 22:15:33 -0800
commitb97acb6f671502f57134932d0e7908e333b7cbbe (patch)
tree8024a5fcc48a7478f130ff11f15169f607c6a2a2 /build.sc
parent6408623e593b932829296945c75e1569930775eb (diff)
downloadmill-b97acb6f671502f57134932d0e7908e333b7cbbe.tar.gz
mill-b97acb6f671502f57134932d0e7908e333b7cbbe.tar.bz2
mill-b97acb6f671502f57134932d0e7908e333b7cbbe.zip
all T.commands to take targets as CLI arguments, and use that to get rid of our custom releaseCI/releaseManual commands
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc36
1 files changed, 0 insertions, 36 deletions
diff --git a/build.sc b/build.sc
index ad21c20c..d31b66d8 100755
--- a/build.sc
+++ b/build.sc
@@ -243,39 +243,3 @@ def uploadToGithub(assembly: Path, authKey: String, release: String, label: Stri
upload.apply(assembly, release, label, authKey)
}
-
-def releaseCI(githubAuthKey: String,
- sonatypeCreds: String,
- gpgPassphrase: String,
- gpgPrivateKey: String) =
- if (!isMasterCommit) T.command()
- else {
- write(home / "gpg.key", java.util.Base64.getDecoder.decode(gpgPrivateKey))
- %('gpg, "--import", home / "gpg.key")(pwd)
- T.command{
- releaseManual(githubAuthKey, sonatypeCreds, gpgPassphrase)()
- }
- }
-
-
-def releaseManual(githubAuthKey: String,
- sonatypeCreds: String,
- gpgPassphrase: String) = T.command{
- mill.scalalib.PublishModule.publishAll(
- sonatypeCreds = sonatypeCreds,
- gpgPassphrase = gpgPassphrase,
- modules = Seq(
- moduledefs,
- core,
- scalalib,
- scalajslib,
- scalaworker,
- scalajslib.jsbridges("0.6"),
- scalajslib.jsbridges("1.0")
- )
- )()
-
- val (release, label) = publishVersion()
- uploadToGithub(releaseAssembly().path, githubAuthKey, release, label)
- ()
-}