Skip to content

Commit

Permalink
feat: Add goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxuan6 committed Feb 22, 2024
1 parent 23c7cca commit 0f3f4b3
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 1 deletion.
25 changes: 25 additions & 0 deletions .github/workflows/releaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3
with:
go-version: 1.18
- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.idea
.idea
dist/
21 changes: 21 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
builds:
- skip: true

release:
footer: |
Full Changelog: [{{ .PreviousTag }}...{{ .Tag }}](https://{{ .ModulePath }}/compare/{{ .PreviousTag }}...{{ .Tag }})
changelog:
sort: desc
filters:
exclude:
- '^docs:'
- '^Merge'
- '^test'
groups:
- title: '🚀 Features'
regexp: 'feat:'
- title: '🐛 Bug Fixes'
regexp: 'fix:'
- title: '🔨 Others'

0 comments on commit 0f3f4b3

Please sign in to comment.