From b20245d899d948145476b31253901b56ce3c52ae Mon Sep 17 00:00:00 2001 From: zzw <2318266924@qq.com> Date: Wed, 29 May 2024 15:12:31 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 31 +++---------------------------- 1 file changed, 3 insertions(+), 28 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 401c5b0..717dcc2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -31,35 +31,10 @@ jobs: echo "EXT=" >> $GITHUB_ENV fi - - name: Build - run: make build - env: - GO: go - VERSION: ${{ github.ref_name }} - - name: Upload Build Artifacts - uses: actions/upload-artifact@v3 - with: - name: ${{ matrix.platform }}-${{ matrix.arch }}-build - path: build/*-${{ matrix.platform }}-${{ matrix.arch }}-${{ github.ref_name }}* - - create-release: - needs: build-and-release - runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') - - steps: - - name: Checkout code - uses: actions/checkout@v3 - - - name: Download Build Artifacts - uses: actions/download-artifact@v3 - with: - name: ${{ matrix.platform }}-${{ matrix.arch }}-build - path: build - - - name: Create GitHub Release + - name: Build and Create GitHub Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | TAG=${GITHUB_REF/refs\/tags\//} - gh release create "$TAG" build/* --title "$TAG" --notes "Release version $TAG" + make build + gh release create "$TAG" build/*-${{ matrix.platform }}-${{ matrix.arch }}-$TAG --title "$TAG" --notes "Release version $TAG"