From 317c61050481030e4e2d527f15a37e4ec37a8574 Mon Sep 17 00:00:00 2001 From: coderzc Date: Thu, 17 Feb 2022 15:59:02 +0800 Subject: [PATCH 1/2] fix release ci --- .github/workflows/release.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6625ffac81..64b13f32cd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,7 +31,10 @@ jobs: - name: Package run: | mvn clean package -DskipTests - mv "$(find hugegraph-*.tar.gz | head -1)" hugegraph-${TAG_NAME/#v/}.tar.gz + + - name: Rename file + if: contains(env.TAG_NAME, "-") + run: mv "$(find hugegraph-*.tar.gz | head -1)" hugegraph-${TAG_NAME/#v/}.tar.gz - uses: xresloader/upload-to-github-release@master env: From 572de9b05c03c9d94c7ff70a60fe1ed856132a95 Mon Sep 17 00:00:00 2001 From: coderzc Date: Fri, 18 Mar 2022 12:56:11 +0800 Subject: [PATCH 2/2] add stage name --- .github/workflows/release.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64b13f32cd..5ba24bec26 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,7 +36,8 @@ jobs: if: contains(env.TAG_NAME, "-") run: mv "$(find hugegraph-*.tar.gz | head -1)" hugegraph-${TAG_NAME/#v/}.tar.gz - - uses: xresloader/upload-to-github-release@master + - name: Upload to GitHub + uses: xresloader/upload-to-github-release@master env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: