mirror of https://github.com/sbt/sbt.git
Nightly requires extra resolver
This commit is contained in:
parent
897cc2b50c
commit
868d804679
|
|
@ -46,7 +46,7 @@ jobs:
|
|||
export BUILD_VERSION="1.4.0-bin-${TIMESTAMP}"
|
||||
echo publishing to Package Registry $RELEASE_GITHUB_PACKAGE_REGISTRY
|
||||
cd io
|
||||
sbt -v -Dsbt.sbtbintray=false +publishLocal +publish
|
||||
sbt -v -Dsbt.sbtbintray=false +publish
|
||||
cd ../
|
||||
sbt -Dsbtlm.path=$HOME/work/sbt/sbt/librarymanagement -Dsbtzinc.path=$HOME/work/sbt/sbt/zinc -Dsbt.sbtbintray=false -Dsbt.build.fatal=false "+lowerUtils/publish; {librarymanagement}/publish; {zinc}/publish; upperModules/publish"
|
||||
rm -rf "$HOME/.ivy2/local" || true
|
||||
|
|
|
|||
11
build.sbt
11
build.sbt
|
|
@ -1542,14 +1542,15 @@ def customCommands: Seq[Setting[_]] = Seq(
|
|||
}
|
||||
)
|
||||
|
||||
def githubPackageRegistry: Option[Resolver] =
|
||||
sys.env.get("RELEASE_GITHUB_PACKAGE_REGISTRY") map { repo =>
|
||||
s"GitHub Package Registry ($repo)" at s"https://maven.pkg.github.com/$repo"
|
||||
}
|
||||
ThisBuild / publishTo := {
|
||||
val old = (ThisBuild / publishTo).value
|
||||
sys.env.get("RELEASE_GITHUB_PACKAGE_REGISTRY") match {
|
||||
case Some(repo) =>
|
||||
Some(s"GitHub Package Registry ($repo)" at s"https://maven.pkg.github.com/$repo")
|
||||
case _ => old
|
||||
}
|
||||
githubPackageRegistry orElse old
|
||||
}
|
||||
ThisBuild / resolvers ++= githubPackageRegistry.toList
|
||||
ThisBuild / credentials ++= {
|
||||
sys.env.get("GITHUB_TOKEN") match {
|
||||
case Some(token) =>
|
||||
|
|
|
|||
Loading…
Reference in New Issue