Skip to content

Commit

Permalink
chore: release action
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Apr 20, 2024
1 parent 7addf13 commit a4157a6
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .github/workflows/release.yml

name: Release

on:
push:
tags:
- 'v*'

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

jobs:
test:
permissions:
checks: write
uses: ./.github/workflows/main.yml

release:
runs-on: ubuntu-latest
needs: [ test ]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: make release
if: success()
26 changes: 26 additions & 0 deletions .gorelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
before:
hooks:
- go mod tidy
builds:
- skip: true
release:
header: |
## Changelog ({{ .Date }})
Welcome to this new release! We hope you enjoy the changes we've made.
changelog:
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999
sort: asc
filters:
exclude:
- "^docs:"
- typo
- (?i)foo

0 comments on commit a4157a6

Please sign in to comment.