diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index cd7085d..4c5ee0e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -34,19 +34,12 @@ jobs: - name: Run tests run: go test -v - build: + retag: runs-on: ubuntu-latest needs: test if: github.ref == 'refs/heads/master' - strategy: - matrix: - os: [ linux, darwin ] - arch: [ amd64, arm64 ] steps: - - name: Check out - uses: actions/checkout@v4 - - name: Shift tag uses: actions/github-script@v7 with: @@ -58,6 +51,19 @@ jobs: sha: context.sha }); + build: + runs-on: ubuntu-latest + needs: retag + if: github.ref == 'refs/heads/master' + strategy: + matrix: + os: [ linux, darwin ] + arch: [ amd64, arm64 ] + + steps: + - name: Check out + uses: actions/checkout@v4 + - name: Build latest uses: wangyoucao577/go-release-action@v1 with: