diff --git a/.github/workflows/halo.yml b/.github/workflows/halo.yml index db70b57c2d61121627ad87599a3205734e5b2f0e..74268154c8262064d670f01c4485963abf271b49 100644 --- a/.github/workflows/halo.yml +++ b/.github/workflows/halo.yml @@ -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