diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..82bf240 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,30 @@ +run-name: Release Steps (${{ github.ref_name }}) +name: Release Steps + +on: + push: + tags: v* + +concurrency: + group: release-${{ github.ref_name }} + cancel-in-progress: true + +jobs: + publish: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 8 + cache: sbt + - uses: sbt/setup-sbt@v1 + - 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 }} diff --git a/LICENSE.md b/LICENSE similarity index 100% rename from LICENSE.md rename to LICENSE diff --git a/build.sbt b/build.sbt index 6c7f4ff..2cfb2da 100644 --- a/build.sbt +++ b/build.sbt @@ -1,11 +1,21 @@ -val scala3Version = "3.3.3" +val scala3Version = "3.3.4" + +inThisBuild(List( + organization := "ch.epfl.lamp", + homepage := Some(url("https://lampepfl.github.io/steps")), + licenses := List("Apache-2.0" -> url(s"https://github.com/lampepfl/steps/blob/v${version.value}/LICENSE")), + developers := List( + Developer("natsukagami", "Natsu Kagami", "natsukagami@gmail.com", url("https://github.com/natsukagami")), + Developer("hamzaremmal", "Hamza Remmal", "hamza@remmal.net", url("https://remmal.net")), + Developer("bracevac", "Oliver Bračevac", "oliver@bracevac.org", url("https://bracevac.org")) + ) +)) + lazy val root = project .in(file(".")) .settings( name := "steps", - organization := "ch.epfl.lamp", - version := "0.1.0-SNAPSHOT", scalaVersion := scala3Version, libraryDependencies += "org.scalameta" %% "munit" % "0.7.29" % Test, Compile / doc / scalacOptions ++= Seq( diff --git a/project/plugins.sbt b/project/plugins.sbt index 83adafa..175826e 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1 +1,2 @@ addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6") +addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.1") \ No newline at end of file