Skip to content

Commit dbe036d

Browse files
committed
ci: add GitHub Actions release workflow with changelog configuration
1 parent f4ae669 commit dbe036d

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
changelog:
2+
categories:
3+
- title: New Features
4+
labels:
5+
- enhancement
6+
- title: Bug Fixes
7+
labels:
8+
- bug
9+
- title: Other Changes
10+
labels:
11+
- "*"

.github/workflows/release.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release:
13+
if: github.server_url == 'https://github.com'
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: actions/setup-go@v5
19+
with:
20+
go-version-file: go.mod
21+
22+
- name: Run tests
23+
run: go test -race ./...
24+
25+
- name: Create GitHub Release
26+
env:
27+
GH_TOKEN: ${{ github.token }}
28+
run: gh release create ${{ github.ref_name }} --generate-notes --verify-tag

0 commit comments

Comments
 (0)