Skip to content

Commit 4b87854

Browse files
committed
ci: add publishing to github
1 parent e48e772 commit 4b87854

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

build.sbt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
import sbt.Keys.libraryDependencies
22
ThisBuild / scalaVersion := Dependencies.scala
3-
ThisBuild / version := "dev-SNAPSHOT"
3+
ThisBuild / version := "0.0.1-SNAPSHOT"
44
ThisBuild / organization := "ch.linkyard.scim"
55
ThisBuild / organizationName := "linkyard ag"
66

7+
ThisBuild / githubOwner := "linkyard"
8+
ThisBuild / githubRepository := "scim-scala"
9+
githubTokenSource := TokenSource.Environment("GITHUB_TOKEN") || TokenSource.GitConfig("github.token")
10+
711
lazy val root = (project in file("."))
812
.settings(
913
name := "scim-scala",
@@ -20,6 +24,8 @@ lazy val root = (project in file("."))
2024
addCompilerPlugin("org.typelevel" %% "kind-projector" % "0.11.0" cross CrossVersion.full),
2125
addCompilerPlugin("com.olegpy" %% "better-monadic-for" % "0.3.1"),
2226
cancelable in Global := true,
27+
githubTokenSource := TokenSource.GitConfig("github.token"),
28+
publish := {},
2329
libraryDependencies ++= Seq(
2430
"io.kamon" %% "kamon-core" % Dependencies.kamon,
2531
"com.typesafe.scala-logging" %% "scala-logging" % Dependencies.scalaLogging,
@@ -38,7 +44,8 @@ lazy val root = (project in file("."))
3844

3945
lazy val core = (project in file("core"))
4046
.settings(
41-
name := "scim",
47+
name := "scim-scala-core",
48+
githubTokenSource := TokenSource.GitConfig("github.token"),
4249
libraryDependencies ++= Seq(
4350
"org.typelevel" %% "cats-core" % Dependencies.cats,
4451
"io.circe" %% "circe-generic" % Dependencies.circe,

project/github.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
addSbtPlugin("com.codecommit" % "sbt-github-packages" % "0.5.0")

0 commit comments

Comments
 (0)