Skip to content

Commit cf28398

Browse files
committed
Set release version dynamically
1 parent add37d9 commit cf28398

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci-release.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
13+
- name: Extract Git Tag
14+
id: extract_tag
15+
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
1316
- uses: actions/setup-java@v4
1417
with:
1518
distribution: temurin
@@ -18,6 +21,7 @@ jobs:
1821
- uses: sbt/setup-sbt@v1
1922
- run: sbt ci-release
2023
env:
24+
VERSION: ${{ env.VERSION }}
2125
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
2226
PGP_SECRET: ${{ secrets.PGP_SECRET }}
2327
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}

version.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ThisBuild / version := "0.41.5-SNAPSHOT"
1+
ThisBuild / version := sys.env("VERSION")

0 commit comments

Comments
 (0)