diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0755b3f5..63d17af1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -104,6 +104,13 @@ jobs: ./coursier bootstrap com.github.lunatech-labs:cmtc_3:2.0.0-SNAPSHOT -o course-management-tools/bin/cmtc --standalone --bat zip -r course-management-tools.zip course-management-tools + - run: sbt ci-release + env: + PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} + PGP_SECRET: ${{ secrets.PGP_SECRET }} + SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} + SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} + - name: Create Github Release id: create_release uses: actions/create-release@v1 diff --git a/build.sbt b/build.sbt index 9e0f6550..a8f30587 100644 --- a/build.sbt +++ b/build.sbt @@ -1,5 +1,9 @@ import Build._ +ThisBuild / dynverVTagPrefix := false +ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org" +sonatypeRepository := "https://s01.oss.sonatype.org/service/local" + lazy val `course-management-tools` = (project in file(".")) .aggregate(cmta, cmtc, core, `functional-tests`, docs) diff --git a/project/Build.scala b/project/Build.scala index 5e76d406..b2dc2759 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -21,7 +21,6 @@ object Build { lazy val commonSettings = Seq( organization := "com.github.lunatech-labs", - version := "2.0.0-SNAPSHOT", scalaVersion := Version.scalaVersion, scalacOptions ++= CompileOptions.compileOptions, buildInfoPackage := "com.lunatech.cmt.version", diff --git a/project/plugins.sbt b/project/plugins.sbt index f06e4601..e95d3b37 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,3 +2,4 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0") addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.3.7") addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.2") addSbtPlugin("org.scalameta" % "sbt-native-image" % "0.3.1") +addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")