mirror of https://github.com/halo-dev/halo
Remove prefix v of tag name when releasing a new version (#1571)
Signed-off-by: John Niang <johnniang@fastmail.com>pull/1573/head
parent
448739cddd
commit
f06f95fbdf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue