Skip to content

Commit

Permalink
chore: use GoReleaser to create GitHub releases on tags (#316)
Browse files Browse the repository at this point in the history
  • Loading branch information
blgm authored Jul 1, 2024
1 parent 10318ad commit a466da5
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: goreleaser

on:
push:
tags:
- 'v*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 'oldstable'
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: 2
builds: []
archives: []
changelog:
sort: asc
groups:
- title: 'Breaking Changes'
regexp: "^.*feat![(\\w)]*:+.*$"
order: 0
- title: 'Features'
regexp: "^.*feat[(\\w)]*:+.*$"
order: 1
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 2
- title: 'Dependency updates'
regexp: "^.*(deps)[(\\w)]*:+.*$"
order: 3
- title: Others
order: 999
checksum:
algorithm: sha1

0 comments on commit a466da5

Please sign in to comment.