Skip to content

Commit

Permalink
Merge pull request #36 from skatsaounis/add-goreleaser-config
Browse files Browse the repository at this point in the history
Add goreleaser configuration
  • Loading branch information
skatsaounis committed Dec 8, 2023
2 parents 953936e + 3b1d319 commit 9a315a9
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,10 @@ jobs:
with:
go-version-file: 'go.mod'
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --rm-dist
args: release --clean
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
24 changes: 24 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
before:
hooks:
- go mod tidy
builds:
- skip: true
release:
name_template: "v{{ .Version }}"
draft: true
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug fixes"
regexp: '^.*?bug(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999

0 comments on commit 9a315a9

Please sign in to comment.