diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6625ffac81..5ba24bec26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,9 +31,13 @@ jobs: - name: Package run: | mvn clean package -DskipTests - mv "$(find hugegraph-*.tar.gz | head -1)" hugegraph-${TAG_NAME/#v/}.tar.gz - - uses: xresloader/upload-to-github-release@master + - name: Rename file + if: contains(env.TAG_NAME, "-") + run: mv "$(find hugegraph-*.tar.gz | head -1)" hugegraph-${TAG_NAME/#v/}.tar.gz + + - name: Upload to GitHub + uses: xresloader/upload-to-github-release@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: