diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index e80d58f..bea8206 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -3,10 +3,6 @@ name: Go on: push: branches: [ master ] - tags: - - 'v*' - pull_request: - branches: [ master ] jobs: build: @@ -21,14 +17,21 @@ jobs: - name: Build run: go build -v ./... + - name: Bump version and push tag + id: tag_version + uses: mathieudutour/github-tag-action@v6.0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + - name: Create Release id: create_release uses: actions/create-release@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - tag_name: ${{ github.ref }} - release_name: Scabiosa ${{ github.ref }} + tag_name: ${{ steps.tag_version.outputs.new_tag }} + release_name: Scabiosa ${{ steps.tag_version.outputs.new_tag }} + body: ${{ steps.tag_version.outputs.changelog }} draft: false prerelease: false