ci: add goreleaser workflow for release (#139)

Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
This commit is contained in:
Anish Ramasekar 2022-04-09 00:41:39 +05:30 коммит произвёл GitHub
Родитель 1f21b0225a
Коммит 9e75ccabb6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 60 добавлений и 0 удалений

26
.github/workflows/create-release.yml поставляемый Normal file
Просмотреть файл

@ -0,0 +1,26 @@
name: create_release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
create-release:
runs-on: ubuntu-20.04
steps:
- name: Checkout
# pinning to the sha ec3a7ce113134d7a93b817d10a8272cb61118579 from https://github.com/actions/checkout/releases/tag/v2.4.0
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
with:
fetch-depth: 0
# pinning to the sha b953231f81b8dfd023c58e0854a721e35037f28b from https://github.com/goreleaser/goreleaser-action/releases/tag/v2.9.1
- name: Goreleaser
uses: goreleaser/goreleaser-action@b953231f81b8dfd023c58e0854a721e35037f28b
with:
version: latest
args: release --rm-dist --timeout 60m --debug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

34
.goreleaser.yml Normal file
Просмотреть файл

@ -0,0 +1,34 @@
# refer to https://goreleaser.com for more options
build:
skip: true
release:
prerelease: auto
header: |
## {{.Tag}} - {{ time "2006-01-02" }}
changelog:
skip: false
groups:
- title: Bug Fixes 🐞
regexp: ^.*fix[(\\w)]*:+.*$
- title: Build 🏭
regexp: ^.*build[(\\w)]*:+.*$
- title: Code Refactoring 💎
regexp: ^.*refactor[(\\w)]*:+.*$
- title: Code Style 🎶
regexp: ^.*style[(\\w)]*:+.*$
- title: Continuous Integration 💜
regexp: ^.*ci[(\\w)]*:+.*$
- title: Documentation 📘
regexp: ^.*docs[(\\w)]*:+.*$
- title: Features 🌈
regexp: ^.*feat[(\\w)]*:+.*$
- title: Maintenance 🔧
regexp: ^.*chore[(\\w)]*:+.*$
- title: Performance Improvements 🚀
regexp: ^.*perf[(\\w)]*:+.*$
- title: Revert Change ◀️
regexp: ^.*revert[(\\w)]*:+.*$
- title: Security Fix 🛡️
regexp: ^.*security[(\\w)]*:+.*$
- title: Testing 💚
regexp: ^.*test[(\\w)]*:+.*$