Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Merge branch 'sonatype'
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 31, 2024
2 parents 07b4ab4 + c986e53 commit 8493287
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
logLevel := Level.Warn

addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.3")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
19 changes: 10 additions & 9 deletions publish.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@ ThisBuild / licenses := List(
"Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"),
)

githubOwner := "chryse-hdl"
githubRepository := "chryse"
usePgpKeyHex("4ADC6C1E368DB976CCAF886B0D22B80CB8F0D344")

githubTokenSource :=
(if (System.getenv().containsKey("GITHUB_ACTIONS")) {
s"git config --local --replace-all chryse.token ghp_abc123".!!
TokenSource.GitConfig("chryse.token")
} else {
TokenSource.GitConfig("github.token")
})
ThisBuild / pomIncludeRepository := { _ => false }
ThisBuild / publishMavenStyle := true

ThisBuild / publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value)
Some("snapshots".at(nexus + "content/repositories/snapshots"))
else Some("releases".at(nexus + "service/local/staging/deploy/maven2"))
}

0 comments on commit 8493287

Please sign in to comment.