Update go.yml
This commit is contained in:
parent
0e2e89cc33
commit
8297767cf7
1 changed files with 9 additions and 6 deletions
15
.github/workflows/go.yml
vendored
15
.github/workflows/go.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Reference in a new issue