From d64c25c6ed583de18d97f4351b789cc667f15edc Mon Sep 17 00:00:00 2001 From: WindowsSov8forUs Date: Thu, 20 Jun 2024 10:00:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=B0=83=E6=8D=A2=20action=20=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a690f6e..e10c08a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,14 +24,6 @@ jobs: echo $PATH echo $(go env GOPATH) - - name: Build binaries - uses: goreleaser/goreleaser-action@v2 - with: - version: latest - args: release - env: - GITHUB_TOKEN: ${{ secrets.PAT }} - - name: Check if release exists id: check_release run: | @@ -42,6 +34,15 @@ jobs: echo "RELEASE_ID=$RELEASE_ID" >> $GITHUB_ENV echo "IS_PRERELEASE=$IS_PRERELEASE" >> $GITHUB_ENV + - name: Build binaries + uses: goreleaser/goreleaser-action@v2 + with: + version: latest + args: release + env: + GITHUB_TOKEN: ${{ secrets.PAT }} + IS_PRERELEASE: ${{ env.IS_PRERELEASE }} + # - name: Create Release # id: create_release # uses: actions/create-release@v1