diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 0000000..fa4c04c
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,23 @@
+name: Release
+on:
+ push:
+ branches: [master, main]
+ tags: ["*"]
+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
+ - 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/build.sbt b/build.sbt
index a810029..27c80f7 100644
--- a/build.sbt
+++ b/build.sbt
@@ -5,11 +5,6 @@ sbtPlugin := true
enablePlugins(ScriptedPlugin)
scriptedLaunchOpts += s"-Dproject.version=${version.value}"
-scriptedDependencies := {
- // publish to maven instead of ivy, in order to activate maven profiles on Windows
- (Test / compile).value
- publishM2.value
-}
addSbtPlugin("com.github.sbt" % "sbt-web" % "1.5.5")
@@ -17,46 +12,13 @@ libraryDependencies ++= Seq(
"com.aayushatharva.brotli4j" % "brotli4j" % "1.16.0"
)
-publishTo := sonatypePublishToBundle.value
-pomExtra := {
- https://github.com/dwickern/sbt-web-brotli
-
-
- Apache 2
- http://www.apache.org/licenses/LICENSE-2.0.txt
-
-
-
- scm:git:git@github.com:dwickern/sbt-web-brotli.git
- scm:git:git@github.com:dwickern/sbt-web-brotli.git
- https://github.com/dwickern
-
-
-
- dwickern
- Derek Wickern
- https://github.com/dwickern
-
-
- enalmada
- Adam Lane
- https://github.com/enalmada
-
-
-}
-
-import ReleaseTransformations._
-releaseProcess := Seq[ReleaseStep](
- checkSnapshotDependencies,
- inquireVersions,
- runClean,
- runTest,
- setReleaseVersion,
- commitReleaseVersion,
- tagRelease,
- releaseStepCommandAndRemaining("publishSigned"),
- releaseStepCommand("sonatypeBundleRelease"),
- setNextVersion,
- commitNextVersion,
- pushChanges
+homepage := Some(url("https://github.com/dwickern/sbt-web-brotli"))
+licenses := List(License.Apache2)
+developers := List(
+ Developer(
+ "dwickern",
+ "Derek Wickern",
+ "dwickern@gmail.com",
+ url("https://github.com/dwickern")
+ )
)
diff --git a/project/plugins.sbt b/project/plugins.sbt
index 0daa06c..10e96e6 100644
--- a/project/plugins.sbt
+++ b/project/plugins.sbt
@@ -1,5 +1,3 @@
-addSbtPlugin("com.github.sbt" % "sbt-release" % "1.4.0")
-addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")
-addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
+addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
libraryDependencies += "org.scala-sbt" %% "scripted-plugin" % sbtVersion.value
diff --git a/version.sbt b/version.sbt
deleted file mode 100644
index 7378fbf..0000000
--- a/version.sbt
+++ /dev/null
@@ -1 +0,0 @@
-ThisBuild / version := "1.1.1-SNAPSHOT"