未验证 提交 f06f95fb 编写于 作者: J John Niang 提交者: GitHub

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

Signed-off-by: NJohn Niang <johnniang@fastmail.com>
上级 448739cd
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册