From 56f5fb53bdacac574e4ebb37750617cc34788b11 Mon Sep 17 00:00:00 2001 From: loyalsoldier <10487845+Loyalsoldier@users.noreply.github.com> Date: Sun, 2 May 2021 22:53:36 +0800 Subject: [PATCH] Fix: release script tag_name --- .github/workflows/release-build.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 721def9ab..8a7c751d6 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -21,6 +21,7 @@ jobs: tag_name="${GITHUB_REF##*/}" echo Tag $tag_name git checkout $tag_name + echo "TAG_NAME=${tag_name}" >> $GITHUB_ENV - name: Build run: | @@ -31,7 +32,8 @@ jobs: uses: softprops/action-gh-release@v1 with: draft: true - fail_on_unmatched_files: true + name: ${{ env.TAG_NAME }} + tag_name: ${{ env.TAG_NAME }} files: ./trojan-go-*.zip env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}