From 3c95622526da06c923e21e842566b0226213f650 Mon Sep 17 00:00:00 2001 From: Karel Cemus Date: Tue, 7 Nov 2023 23:40:03 +0100 Subject: [PATCH] Removed SBT release plugin (#30) Co-authored-by: Karel Cemus --- .github/workflows/publish.yml | 12 +++++++++--- build.sbt | 8 -------- project/plugins.sbt | 2 -- version.sbt | 1 - 4 files changed, 9 insertions(+), 14 deletions(-) delete mode 100644 version.sbt diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d0f16cc..28d81ed 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -2,7 +2,6 @@ name: Publish on: push: tags: ["*"] - workflow_dispatch: {} concurrency: group: "${{ github.workflow }}-${{ github.ref }}" @@ -19,7 +18,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ github.head_ref }} + ref: ${{ github.ref_name }} - name: Cache Coursier uses: coursier/cache-action@v6.4 @@ -43,4 +42,11 @@ jobs: SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} run: | - sbt --client "+test; +publishSigned;" + echo "Building" + # sbt --client "+test; +publishSigned;" + + - name: Create a GitHub release + uses: ncipollo/release-action@v1 + with: + name: Release ${{ github.ref_name }} + generateReleaseNotes: true diff --git a/build.sbt b/build.sbt index 25bc957..42629c1 100644 --- a/build.sbt +++ b/build.sbt @@ -1,4 +1,3 @@ -import com.jsuereth.sbtpgp.PgpKeys import sbt.Keys._ import sbt._ @@ -26,8 +25,6 @@ libraryDependencies ++= Seq( "com.typesafe.play" %% "play-specs2" % playVersion % "test" ) -resolvers += "Typesafe repository" at "https://repo.typesafe.com/typesafe/releases/" - javacOptions ++= Seq("-Xlint:unchecked", "-encoding", "UTF-8") scalacOptions ++= Seq("-deprecation", "-feature", "-unchecked", "-Yrangepos") @@ -53,10 +50,5 @@ pomExtra := -// Release plugin settings -releaseCrossBuild := true -releaseTagName := (ThisBuild / version).value -releasePublishArtifactsAction := PgpKeys.publishSigned.value - // Publish settings publishTo := sonatypePublishToBundle.value diff --git a/project/plugins.sbt b/project/plugins.sbt index 6a84ef0..2e2f16e 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,8 +1,6 @@ // library release -addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0") addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.21") addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1") // checks for updates addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.6.1") - diff --git a/version.sbt b/version.sbt deleted file mode 100644 index 28229e7..0000000 --- a/version.sbt +++ /dev/null @@ -1 +0,0 @@ -ThisBuild / version := "2.3.1-SNAPSHOT"