Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

switch releasing to Evolution's jFrog #103

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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")
Loading