Skip to content

Commit

Permalink
added sbt-ci-release
Browse files Browse the repository at this point in the history
  • Loading branch information
kailuowang committed Dec 1, 2022
1 parent 85c4769 commit 8a44b81
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 5 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Release
on:
push:
branches: [master, main]
tags: ["*"]
jobs:
publish:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3.0.2
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- 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 }}
2 changes: 2 additions & 0 deletions project/Publish.scala
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ object Publish {
url("https://kailuowang.com")
)
),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
pomIncludeRepository := { _ false },
publishArtifact in Test := false,
releaseCrossBuild := true,
Expand Down
7 changes: 2 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.9.13")

addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.1.2")

addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")

addSbtPlugin("org.scalariform" % "sbt-scalariform" % "1.8.0")

Expand All @@ -15,3 +10,5 @@ addSbtPlugin("com.eed3si9n" % "sbt-buildinfo" % "0.11.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.6")

addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.10.1")

addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.11")

0 comments on commit 8a44b81

Please sign in to comment.