From a18270c71f029840e4b575839e26226948d76685 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Fri, 10 Jan 2025 16:14:31 +0100 Subject: [PATCH 1/4] chore: configure sbt/sbt-ci-release --- build.sbt | 16 +++++++++++++--- project/plugins.sbt | 1 + 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/build.sbt b/build.sbt index 6c7f4ff..6f8b784 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/${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 From ae2ce3d6f1363ca1d08ca15ce146e2121f39d6bc Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Fri, 10 Jan 2025 16:25:24 +0100 Subject: [PATCH 2/4] chore: Add the release workflow --- .github/workflows/release.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml 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 }} From 9f4a2530c8baca49c0959226ced6f0da5381cafe Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Fri, 10 Jan 2025 16:44:03 +0100 Subject: [PATCH 3/4] fix: rename LICENSE.md to LICENSE --- LICENSE.md => LICENSE | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename LICENSE.md => LICENSE (100%) diff --git a/LICENSE.md b/LICENSE similarity index 100% rename from LICENSE.md rename to LICENSE From 452f61e0dfdcee764f9cc3968390fe8f0b58e183 Mon Sep 17 00:00:00 2001 From: Hamza Remmal Date: Fri, 10 Jan 2025 16:46:38 +0100 Subject: [PATCH 4/4] fix: add v in LICENSE's URL --- build.sbt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.sbt b/build.sbt index 6f8b784..2cfb2da 100644 --- a/build.sbt +++ b/build.sbt @@ -3,7 +3,7 @@ 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/${version.value}/LICENSE")), + 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")),