Skip to content

Commit 9e75cca

Browse files
authored
ci: add goreleaser workflow for release (#139)
Signed-off-by: Anish Ramasekar <anish.ramasekar@gmail.com>
1 parent 1f21b02 commit 9e75cca

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed
+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: create_release
2+
on:
3+
push:
4+
tags:
5+
- 'v*'
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
create-release:
12+
runs-on: ubuntu-20.04
13+
steps:
14+
- name: Checkout
15+
# pinning to the sha ec3a7ce113134d7a93b817d10a8272cb61118579 from https://github.com/actions/checkout/releases/tag/v2.4.0
16+
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
17+
with:
18+
fetch-depth: 0
19+
# pinning to the sha b953231f81b8dfd023c58e0854a721e35037f28b from https://github.com/goreleaser/goreleaser-action/releases/tag/v2.9.1
20+
- name: Goreleaser
21+
uses: goreleaser/goreleaser-action@b953231f81b8dfd023c58e0854a721e35037f28b
22+
with:
23+
version: latest
24+
args: release --rm-dist --timeout 60m --debug
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

β€Ž.goreleaser.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# refer to https://goreleaser.com for more options
2+
build:
3+
skip: true
4+
release:
5+
prerelease: auto
6+
header: |
7+
## {{.Tag}} - {{ time "2006-01-02" }}
8+
changelog:
9+
skip: false
10+
groups:
11+
- title: Bug Fixes 🐞
12+
regexp: ^.*fix[(\\w)]*:+.*$
13+
- title: Build 🏭
14+
regexp: ^.*build[(\\w)]*:+.*$
15+
- title: Code Refactoring πŸ’Ž
16+
regexp: ^.*refactor[(\\w)]*:+.*$
17+
- title: Code Style 🎢
18+
regexp: ^.*style[(\\w)]*:+.*$
19+
- title: Continuous Integration πŸ’œ
20+
regexp: ^.*ci[(\\w)]*:+.*$
21+
- title: Documentation πŸ“˜
22+
regexp: ^.*docs[(\\w)]*:+.*$
23+
- title: Features 🌈
24+
regexp: ^.*feat[(\\w)]*:+.*$
25+
- title: Maintenance πŸ”§
26+
regexp: ^.*chore[(\\w)]*:+.*$
27+
- title: Performance Improvements πŸš€
28+
regexp: ^.*perf[(\\w)]*:+.*$
29+
- title: Revert Change ◀️
30+
regexp: ^.*revert[(\\w)]*:+.*$
31+
- title: Security Fix πŸ›‘οΈ
32+
regexp: ^.*security[(\\w)]*:+.*$
33+
- title: Testing πŸ’š
34+
regexp: ^.*test[(\\w)]*:+.*$

0 commit comments

Comments
Β (0)