Skip to content

Commit

Permalink
feat: setup sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
ckipp01 committed Jul 20, 2023
1 parent 94ac9c9 commit c71e22f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,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
Expand Down
2 changes: 2 additions & 0 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import Build._

ThisBuild / dynverVTagPrefix := false

lazy val `course-management-tools` =
(project in file("."))
.aggregate(cmta, cmtc, core, `functional-tests`, docs)
Expand Down
4 changes: 1 addition & 3 deletions project/Build.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,11 @@ object Build {
"-Wunused:explicits",
"-Wunused:implicits",
"-Wunused:params",
"-Wvalue-discard",
)
"-Wvalue-discard")
}

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",
Expand Down
1 change: 1 addition & 0 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit c71e22f

Please sign in to comment.