Skip to content

Commit

Permalink
Set release version dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
dimafeng committed Dec 27, 2024
1 parent add37d9 commit cf28398
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Extract Git Tag
id: extract_tag
run: echo "VERSION=${GITHUB_REF##*/}" >> $GITHUB_ENV
- uses: actions/setup-java@v4
with:
distribution: temurin
Expand All @@ -18,6 +21,7 @@ jobs:
- uses: sbt/setup-sbt@v1
- run: sbt ci-release
env:
VERSION: ${{ env.VERSION }}
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }}
PGP_SECRET: ${{ secrets.PGP_SECRET }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ThisBuild / version := "0.41.5-SNAPSHOT"
ThisBuild / version := sys.env("VERSION")

0 comments on commit cf28398

Please sign in to comment.