mirror of https://github.com/halo-dev/halo
Set the final version with tag name when releasing (#1511)
Signed-off-by: John Niang <johnniang@fastmail.com>pull/1515/head
parent
4ffbd502fe
commit
a376dca4d5
|
@ -47,8 +47,10 @@ jobs:
|
||||||
cache: 'gradle'
|
cache: 'gradle'
|
||||||
java-version: 11
|
java-version: 11
|
||||||
- name: Build with Gradle
|
- name: Build with Gradle
|
||||||
run: ./gradlew clean build -x test
|
run: |
|
||||||
|
# Set the version with tag name when releasing
|
||||||
|
sed -i "s/version=.*-SNAPSHOT$/version=${{ github.event.release.tag_name }}/1" gradle.properties
|
||||||
|
./gradlew clean build -x test
|
||||||
- name: Archive halo jar
|
- name: Archive halo jar
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -6,7 +6,6 @@ plugins {
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "run.halo.app"
|
group = "run.halo.app"
|
||||||
version = "1.4.13"
|
|
||||||
description = "Halo, An excellent open source blog publishing application."
|
description = "Halo, An excellent open source blog publishing application."
|
||||||
sourceCompatibility = JavaVersion.VERSION_11
|
sourceCompatibility = JavaVersion.VERSION_11
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
version=1.4.13-SNAPSHOT
|
Loading…
Reference in New Issue