Remove prefix v of tag name when releasing a new version (#1571)

Signed-off-by: John Niang <johnniang@fastmail.com>
pull/1573/head
John Niang 2021-12-06 16:17:55 +08:00 committed by GitHub
parent 448739cddd
commit f06f95fbdf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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