diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2eefa16..bf36511 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,13 +24,16 @@ jobs: go-version: 1.14 - name: Build run: make all - - name: Bump version and push tag + - id: git-auto-tag + name: Bump version and push tag uses: anothrNick/github-tag-action@1.22.0 if: github.ref == 'refs/heads/master' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true DEFAULT_BUMP: patch + - run: git tag ${{ steps.git-auto-tag.outputs.new_tag }} + if: github.ref == 'refs/heads/master' - name: Release if: github.ref == 'refs/heads/master' run: make release