Skip to content

Commit

Permalink
Add version scheme to build and release script
Browse files Browse the repository at this point in the history
  • Loading branch information
ekrich committed Jul 3, 2021
1 parent 7bea85d commit 7af927f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ val versionsNative = Seq(scala211, scala212, scala213)

ThisBuild / scalaVersion := scala213
ThisBuild / crossScalaVersions := versionsNative
ThisBuild / versionScheme := Some("early-semver")

inThisBuild(
List(
Expand Down
6 changes: 6 additions & 0 deletions scripts/git-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
# Release script from Olafur
set -eux
version=$1
# f option (force) allows a republish with the same versions
git tag -af "v$version" -m "v$version" && git push -f origin v$version

0 comments on commit 7af927f

Please sign in to comment.