From f06f95fbdfc87781781a555f840e49c65b62eb4f Mon Sep 17 00:00:00 2001 From: John Niang Date: Mon, 6 Dec 2021 16:17:55 +0800 Subject: [PATCH] Remove prefix v of tag name when releasing a new version (#1571) Signed-off-by: John Niang --- .github/workflows/halo.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/halo.yml b/.github/workflows/halo.yml index db70b57c..74268154 100644 --- a/.github/workflows/halo.yml +++ b/.github/workflows/halo.yml @@ -49,7 +49,9 @@ jobs: - name: Build with Gradle run: | # Set the version with tag name when releasing - sed -i "s/version=.*-SNAPSHOT$/version=${{ github.event.release.tag_name }}/1" gradle.properties + version=${{ github.event.release.tag_name }} + version=${version#v} + sed -i "s/version=.*-SNAPSHOT$/version=$version/1" gradle.properties ./gradlew clean build -x test - name: Archive halo jar uses: actions/upload-artifact@v2 -- GitLab