Skip to content

Commit d60390a

Browse files
authored
Merge pull request #854 from aramase/goreleaser
ci: add goreleaser workflow for release
2 parents d81ffa6 + 2f16132 commit d60390a

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed

.github/workflows/create-release.yaml

Lines changed: 26 additions & 0 deletions
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 5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f from https://github.com/actions/checkout/releases/tag/v2.3.4
16+
uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579
17+
with:
18+
fetch-depth: 0
19+
# pinning to the sha 79d4afbba1b4eff8b9a98e3d2e58c4dbaf094e2b from https://github.com/goreleaser/goreleaser-action/releases/tag/v2.8.1
20+
- name: Goreleaser
21+
uses: goreleaser/goreleaser-action@79d4afbba1b4eff8b9a98e3d2e58c4dbaf094e2b
22+
with:
23+
version: latest
24+
args: release --rm-dist --timeout 60m --debug
25+
env:
26+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.goreleaser.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
extra_files:
9+
- glob: deploy/*.yaml
10+
changelog:
11+
skip: false
12+
groups:
13+
- title: Bug Fixes 🐞
14+
regexp: ^.*fix[(\\w)]*:+.*$
15+
- title: Build 🏭
16+
regexp: ^.*build[(\\w)]*:+.*$
17+
- title: Code Refactoring 💎
18+
regexp: ^.*refactor[(\\w)]*:+.*$
19+
- title: Code Style 🎶
20+
regexp: ^.*style[(\\w)]*:+.*$
21+
- title: Continuous Integration 💜
22+
regexp: ^.*ci[(\\w)]*:+.*$
23+
- title: Documentation 📘
24+
regexp: ^.*docs[(\\w)]*:+.*$
25+
- title: Features 🌈
26+
regexp: ^.*feat[(\\w)]*:+.*$
27+
- title: Maintenance 🔧
28+
regexp: ^.*chore[(\\w)]*:+.*$
29+
- title: Performance Improvements 🚀
30+
regexp: ^.*perf[(\\w)]*:+.*$
31+
- title: Revert Change ◀️
32+
regexp: ^.*revert[(\\w)]*:+.*$
33+
- title: Security Fix 🛡️
34+
regexp: ^.*security[(\\w)]*:+.*$
35+
- title: Testing 💚
36+
regexp: ^.*test[(\\w)]*:+.*$

0 commit comments

Comments
 (0)