Skip to content

Commit

Permalink
switch releasing to Evolution's jFrog (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
mr-git authored Sep 11, 2024
1 parent 4bf6739 commit 3468495
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 12 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Publish new Release

on:
release:
types: [published]
branches: [base]

jobs:
release:
uses: evolution-gaming/scala-github-actions/.github/workflows/release.yml@v1
secrets: inherit
9 changes: 1 addition & 8 deletions .github/workflows/scala.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,4 @@ jobs:
cache: 'sbt'

- uses: coursier/cache-action@v6

- name: Publish artifacts
env:
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASS }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
run: sbt ci-release

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ A derivation library for scala 3 with annotation based configuration.
This library os being published to the macen central. Add library to your project as

```sbt
addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")

libraryDependencies += "com.evolution" %% "derivation-circe" % "{version}"
```

Expand Down
11 changes: 8 additions & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ ThisBuild / scalaVersion := Version.scala

ThisBuild / organization := "com.evolution"

ThisBuild / startYear := Some(2022)

ThisBuild / organizationName := "Evolution"

ThisBuild / organizationHomepage := Some(url("https://evolution.com"))

ThisBuild / versionScheme := Some("early-semver")

testFrameworks += new TestFramework("munit.Framework")
Expand All @@ -22,9 +28,6 @@ val testDependencies = libraryDependencies ++= Vector(
"org.scalameta" %% "munit" % Version.munit % Test,
)

ThisBuild / sonatypeCredentialHost := "s01.oss.sonatype.org"
ThisBuild / sonatypeRepository := "https://s01.oss.sonatype.org/service/local"

lazy val publishSettings = Vector(
homepage := Some(url("https://github.com/evolution-gaming/derivation")),
developers := List(
Expand Down Expand Up @@ -52,6 +55,8 @@ lazy val publishSettings = Vector(
),
),
licenses += ("MIT", url("https://opensource.org/licenses/MIT")),
releaseCrossBuild := true,
publishTo := Some(Resolver.evolutionReleases),
)

val defaultSettings = testDependencies ++ scala3Settings ++ publishSettings
Expand Down
4 changes: 3 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.0")

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

addSbtPlugin("com.evolution" % "sbt-artifactory-plugin" % "0.0.2")

0 comments on commit 3468495

Please sign in to comment.