From e9b681b3cfd1fa202106216db776ca7141d659dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=87=A8?= <87279659+windfgg@users.noreply.github.com> Date: Sat, 18 Nov 2023 16:28:21 +0800 Subject: [PATCH] Update go-releases.yml --- .github/workflows/go-releases.yml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/go-releases.yml b/.github/workflows/go-releases.yml index 213cac0..a459fd7 100644 --- a/.github/workflows/go-releases.yml +++ b/.github/workflows/go-releases.yml @@ -8,15 +8,8 @@ env: BINARY_NAME: "ProxyPool" jobs: - build-go-binary: + delete-release-assets: runs-on: ubuntu-latest - strategy: - matrix: - goos: [linux, windows] - goarch: ["386", amd64, arm64] - exclude: - - goarch: arm64 - goos: windows steps: - name: Checkout code @@ -35,6 +28,21 @@ jobs: fail-if-no-assets: false fail-if-no-release: false + build-go-binary: + needs: delete-release-assets + runs-on: ubuntu-latest + strategy: + matrix: + goos: [linux, windows] + goarch: ["386", amd64, arm64] + exclude: + - goarch: arm64 + goos: windows + + steps: + - name: Checkout code + uses: actions/checkout@v3 + - name: Go release action uses: wangyoucao577/go-release-action@v1.40 with: