Skip to content

Commit b4db3a2

Browse files
committed
Update version tagging scheme
1 parent d820b1c commit b4db3a2

File tree

4 files changed

+9
-8
lines changed

4 files changed

+9
-8
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
branches: ['**']
55
push:
66
branches: ['**']
7-
tags: [v*]
7+
tags: [scala2-v*]
88
jobs:
99
ci:
1010
# run on external PRs, but not on internal PRs since those will be run by push to branch
@@ -41,7 +41,7 @@ jobs:
4141
publish:
4242
name: Publish release
4343
needs: [ci]
44-
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v'))
44+
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/scala2-v'))
4545
runs-on: ubuntu-20.04
4646
env:
4747
STTP_NATIVE: 1
@@ -72,7 +72,7 @@ jobs:
7272
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
7373
- name: Extract version from commit message
7474
run: |
75-
version=${GITHUB_REF/refs\/tags\/v/}
75+
version=${GITHUB_REF/refs\/tags\/scala2-v/}
7676
echo "VERSION=$version" >> $GITHUB_ENV
7777
env:
7878
COMMIT_MSG: ${{ github.event.head_commit.message }}
@@ -81,8 +81,8 @@ jobs:
8181
with:
8282
config-name: release-drafter.yml
8383
publish: true
84-
name: "v${{ env.VERSION }}"
85-
tag: "v${{ env.VERSION }}"
84+
name: "scala2-v${{ env.VERSION }}"
85+
tag: "scala2-v${{ env.VERSION }}"
8686
version: "v${{ env.VERSION }}"
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build.sbt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ val scala2_13 = "2.13.6"
55
val scala2 = List(scala2_12, scala2_13)
66

77
excludeLintKeys in Global ++= Set(ideSkipProject)
8+
ThisBuild / dynverTagPrefix := "scala2-v" // a custom prefix is needed to differentiate tags between scala2 & scala3 versions
89

910
val commonSettings = commonSmlBuildSettings ++ ossPublishSettings ++ Seq(
1011
organization := "com.softwaremill.magnolia1_2",

project/build.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
sbt.version=1.5.3
1+
sbt.version=1.5.5

project/plugins.sbt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
addSbtPlugin("com.eed3si9n" % "sbt-projectmatrix" % "0.8.0")
22

3-
val sbtSoftwareMillVersion = "2.0.5"
3+
val sbtSoftwareMillVersion = "2.0.6"
44
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-common" % sbtSoftwareMillVersion)
55
addSbtPlugin("com.softwaremill.sbt-softwaremill" % "sbt-softwaremill-publish" % sbtSoftwareMillVersion)
66

77
addSbtPlugin("org.jetbrains.scala" % "sbt-ide-settings" % "1.1.1")
8-
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0")
8+
addSbtPlugin("org.scala-js" % "sbt-scalajs" % "1.6.0")

0 commit comments

Comments
 (0)