Skip to content

Commit

Permalink
chore: removed unnecessary sbt options for publication
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinHenry committed Jan 7, 2022
1 parent 1502f88 commit 1bb20f0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 19 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
name: Release
on:
workflow_dispatch:
push:
branches: [ master ]
tags: [ "*" ]

jobs:
publish:
runs-on: ubuntu-latest
environment: Deploy
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v10
- uses: olafurpg/setup-gpg@v3
- uses: actions/[email protected]
with:
fetch-depth: 0
- uses: olafurpg/setup-scala@v13
- name: Publish
run: sbt ci-release
env:
Expand Down
17 changes: 6 additions & 11 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,15 @@ lazy val commonSettings = Seq(
scalafmtOnCompile := true,
// Resolvers
resolvers += Resolver.sonatypeRepo("public"),
resolvers += Resolver.sonatypeRepo("snapshots"),
// Publishing
// Publication
organization := "fr.valentin-henry",
homepage := Some(url("https://github.com/valentinHenry/blaireau")),
licenses ++= Seq(("MIT", url("http://opensource.org/licenses/MIT"))),
homepage := Some(url("https://github.com/valentinHenry/blaireau")),
developers := List(
Developer("Firiath", "Valentin Henry", "[email protected]", url("https://valentin-henry.fr"))
),
publishTo := {
val nexus = "https://s01.oss.sonatype.org/"
if (isSnapshot.value) Some("snapshots".at(nexus + "content/repositories/snapshots"))
else Some("releases".at(nexus + "service/local/staging/deploy/maven2"))
},
publishMavenStyle := true,
pomIncludeRepository := { _ => false },
versionScheme := Some("early-semver"),
sonatypeCredentialHost := "s01.oss.sonatype.org",
sonatypeRepository := "https://s01.oss.sonatype.org/service/local",
// Headers
headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cppStyleLineComment),
headerLicense := Some(
Expand Down Expand Up @@ -110,3 +103,5 @@ lazy val tests = project
.enablePlugins(AutomateHeaderPlugin)
.enablePlugins(ScalafmtPlugin)
.dependsOn(dsl, refined, newtype, circe)

ThisBuild / versionScheme := Some("early-semver")
1 change: 0 additions & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,5 @@ addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.4.3")
addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.2")
addSbtPlugin("com.timushev.sbt" % "sbt-rewarn" % "0.1.3")
addSbtPlugin("com.github.sbt" % "sbt-release" % "1.1.0")
addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.3")
addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.20")
1 change: 0 additions & 1 deletion version.sbt

This file was deleted.

0 comments on commit 1bb20f0

Please sign in to comment.