File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 47
47
cache : ' gradle'
48
48
java-version : 11
49
49
- name : Build with Gradle
50
- run : ./gradlew clean build -x test
51
-
50
+ run : |
51
+ # Set the version with tag name when releasing
52
+ sed -i "s/version=.*-SNAPSHOT$/version=${{ github.event.release.tag_name }}/1" gradle.properties
53
+ ./gradlew clean build -x test
52
54
- name : Archive halo jar
53
55
uses : actions/upload-artifact@v2
54
56
with :
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ plugins {
6
6
}
7
7
8
8
group = " run.halo.app"
9
- version = " 1.4.13"
10
9
description = " Halo, An excellent open source blog publishing application."
11
10
sourceCompatibility = JavaVersion . VERSION_11
12
11
@@ -174,4 +173,4 @@ task projectVersion {
174
173
doLast {
175
174
println project. version
176
175
}
177
- }
176
+ }
Original file line number Diff line number Diff line change
1
+ version =1.4.13-SNAPSHOT
You can’t perform that action at this time.
0 commit comments