Merge pull request #51 from keynmol/maven-central-publish

This commit is contained in:
eugene yokota 2021-04-23 07:46:28 -04:00 committed by GitHub
commit 5b5210cbd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 11 deletions

View File

@ -1,8 +1,8 @@
name: Release
on:
push:
tags:
- '*'
tags: ["*"]
jobs:
build:
runs-on: ubuntu-latest
@ -24,13 +24,12 @@ jobs:
sbt test packagedArtifacts
- name: Release
env:
BINTRAY_USER: ${{ secrets.BINTRAY_USER }}
BINTRAY_PASS: ${{ secrets.BINTRAY_PASS }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
CI_CLEAN: clean
CI_RELEASE: publishSigned
CI_SONATYPE_RELEASE: version
run: |
.github/decodekey.sh
sbt ci-release

View File

@ -15,9 +15,6 @@ lazy val root = (project in file("."))
name := "sbt-projectmatrix",
pluginCrossBuild / sbtVersion := "1.2.8",
scalacOptions := Seq("-deprecation", "-unchecked"),
publishMavenStyle := false,
bintrayRepository := "sbt-plugins",
publishTo := (bintray / publishTo).value,
scriptedLaunchOpts := { scriptedLaunchOpts.value ++
Seq("-Xmx1024M", "-Dplugin.version=" + version.value)
},

View File

@ -1,3 +1 @@
addSbtPlugin("org.foundweekends" %% "sbt-bintray" % "0.6.1")
addSbtPlugin("com.jsuereth" % "sbt-pgp" % "2.1.1")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.4")
addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7")