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

Commit

Permalink
publish.sbt: big hack to get this going ...?
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 30, 2024
1 parent 3872694 commit dfcbe85
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions publish.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import scala.sys.process._

ThisBuild / scmInfo := Some(
ScmInfo(
url("https://github.com/chryse-hdl/chryse"),
Expand All @@ -19,6 +21,13 @@ ThisBuild / licenses := List(
"Apache 2" -> url("http://www.apache.org/licenses/LICENSE-2.0.txt"),
)

githubOwner := "chryse-hdl"
githubRepository := "chryse"
githubTokenSource := TokenSource.GitConfig("github.token")
githubOwner := "chryse-hdl"
githubRepository := "chryse"

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")
})

0 comments on commit dfcbe85

Please sign in to comment.