git-chglog/.github/workflows/release.yml
Khosrow Moossavi 8d9e00b699
ci: overall enhancements and cosmetics improvements (#134)
* ci: cosmetic renaming CI jobs

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>

* chore: overrall Makefile enhancements

Signed-off-by: Khosrow Moossavi <khos2ow@gmail.com>
2021-03-31 12:41:24 -04:00

32 lines
633 B
YAML

name: release
on:
push:
tags:
- "*"
env:
GO_VERSION: "1.16"
jobs:
goreleaser:
runs-on: ubuntu-20.04
if: "!contains(github.event.head_commit.message, '[ci skip]')"
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }}