From 14eb6cbfeb3255af7d8ed68588b42d28fffdba01 Mon Sep 17 00:00:00 2001 From: coderzc Date: Mon, 21 Mar 2022 13:54:47 +0800 Subject: [PATCH] fix release ci (#1770) --- .github/workflows/release.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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: