Skip to content

Commit

Permalink
Upgrade sbt-best-practice to use sbt-release-early
Browse files Browse the repository at this point in the history
  • Loading branch information
Atry committed Mar 12, 2019
1 parent 2309870 commit b01e0fc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
9 changes: 2 additions & 7 deletions .travis.yml
Expand Up @@ -22,15 +22,10 @@ cache:

before_script:

script:
- sbt +test

before_deploy:

deploy:
skip_cleanup: true
provider: script
script: sbt "release with-defaults"
on:
condition: -e ./deploy.sbt
all_branches: true
script: sbt ++$TRAVIS_SCALA_VERSION releaseEarly

2 changes: 1 addition & 1 deletion project/plugins.sbt
@@ -1,3 +1,3 @@
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "4.1.0")
addSbtPlugin("com.thoughtworks.sbt-best-practice" % "sbt-best-practice" % "4.2.0")

addSbtPlugin("org.lyranthe.sbt" % "partial-unification" % "1.1.0")
4 changes: 1 addition & 3 deletions deploy.sbt.disabled → secret.sbt
@@ -1,8 +1,6 @@
enablePlugins(SonatypeRelease)

lazy val secret = project.settings(publishArtifact := false).in {
val secretDirectory = file(sourcecode.File()).getParentFile / "secret"
sys.env.get("GITHUB_PERSONAL_ACCESS_TOKEN").foreach { token =>
for (token <- sys.env.get("GITHUB_PERSONAL_ACCESS_TOKEN")) {
IO.delete(secretDirectory)
org.eclipse.jgit.api.Git
.cloneRepository()
Expand Down

0 comments on commit b01e0fc

Please sign in to comment.