Skip to content

Commit 0e49fb5

Browse files
committed
improve release process
1 parent 11b362d commit 0e49fb5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
with:
2525
ref: ${{ github.event.release.tag_name }}
2626

27+
# Get the current tag and replace the version in gradle.properties
28+
- name: Set Version
29+
run: |
30+
VERSION=$(echo "${{ github.event.release.tag_name }}" | sed -e 's/^v//' -e 's/-.*//')
31+
sed -i "s/^version=.*/version=$VERSION/" gradle.properties
32+
2733
# Set up Java environment for the next steps
2834
- name: Setup Java
2935
uses: actions/setup-java@v4

0 commit comments

Comments
 (0)