From 8297767cf7881176ba2a001d6b7db020081b5bb3 Mon Sep 17 00:00:00 2001 From: netbenix <36106848+netbenix@users.noreply.github.com> Date: Thu, 18 Nov 2021 19:16:31 +0100 Subject: [PATCH] Update go.yml --- .github/workflows/go.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) 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