diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e874d12..7ca002b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -42,19 +42,11 @@ jobs: ./SewerRat & 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: @@ -66,6 +58,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: