Skip to content

Commit

Permalink
Removed SBT release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Karel Cemus committed Nov 7, 2023
1 parent afbbe8d commit b567155
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 13 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
7 changes: 0 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,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 +51,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 b567155

Please sign in to comment.