File tree Expand file tree Collapse file tree
plugin/src/main/scala/com/geirsson Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,10 +73,14 @@ object CiReleasePlugin extends AutoPlugin {
7373 s " TRAVIS_TAG= $travisTag"
7474 )
7575 setupGpg()
76+ // https://github.com/olafurpg/sbt-ci-release/issues/64
77+ val reloadKeyFiles =
78+ " ; set pgpSecretRing := pgpSecretRing.value; set pgpPublicRing := pgpPublicRing.value"
7679 if (! isTravisTag) {
7780 if (isSnapshotVersion(currentState)) {
7881 println(s " No tag push, publishing SNAPSHOT " )
79- sys.env.getOrElse(" CI_SNAPSHOT_RELEASE" , " +publish" ) ::
82+ reloadKeyFiles ::
83+ sys.env.getOrElse(" CI_SNAPSHOT_RELEASE" , " +publish" ) ::
8084 currentState
8185 } else {
8286 // Happens when a tag is pushed right after merge causing the master branch
@@ -88,7 +92,8 @@ object CiReleasePlugin extends AutoPlugin {
8892 }
8993 } else {
9094 println(" Tag push detected, publishing a stable release" )
91- sys.env.getOrElse(" CI_RELEASE" , " +publishSigned" ) ::
95+ reloadKeyFiles ::
96+ sys.env.getOrElse(" CI_RELEASE" , " +publishSigned" ) ::
9297 sys.env.getOrElse(" CI_SONATYPE_RELEASE" , " sonatypeBundleRelease" ) ::
9398 currentState
9499 }
You can’t perform that action at this time.
0 commit comments