Skip to content

Commit

Permalink
Removed SBT release plugin (#30)
Browse files Browse the repository at this point in the history
Co-authored-by: Karel Cemus <[email protected]>
  • Loading branch information
KarelCemus and Karel Cemus authored Nov 7, 2023
1 parent afbbe8d commit 3c95622
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 14 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ name: Publish
on:
push:
tags: ["*"]
workflow_dispatch: {}

concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
Expand All @@ -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/[email protected]
Expand All @@ -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
8 changes: 0 additions & 8 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import com.jsuereth.sbtpgp.PgpKeys
import sbt.Keys._
import sbt._

Expand Down Expand Up @@ -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")
Expand All @@ -53,10 +50,5 @@ pomExtra :=
</developer>
</developers>

// Release plugin settings
releaseCrossBuild := true
releaseTagName := (ThisBuild / version).value
releasePublishArtifactsAction := PgpKeys.publishSigned.value

// Publish settings
publishTo := sonatypePublishToBundle.value
2 changes: 0 additions & 2 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -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")

1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit 3c95622

Please sign in to comment.