Skip to content

Commit

Permalink
ACTIONS: Update goreleaser.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cian911 committed Dec 31, 2021
1 parent 7f5d8b4 commit 6f8df85
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
ARTIFACTORY_NAME_SECRET: ${{ secrets.ARTIFACTORY_NAME_SECRET }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
/bin
.DS_Store
/dist
52 changes: 50 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,30 @@ before:
- go mod download
builds:
-
main: cmd/main.go
main: ./cmd/main.go
ldflags:
- -s -w
- -X main.Version={{ .Version }}
- -X main.Build={{ .Commit }}
- -X main.BuildDate={{ .Date }}
- -X main.License={{ .Date }}
goos:
- linux
- windows
- darwin
- freebsd
- openbsd
goarch:
- amd64
- arm
- arm64
- 386
- riscv64
goarm:
- 5
- 6
- 7

archives:
-
id: switchboard
Expand All @@ -24,10 +42,30 @@ snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
use: github
filters:
exclude:
- '^docs:'
- '^test:'
- '^typo|TYPO'
- typo
- Merge pull request
- Merge remote-tracking branch
- Merge branch
groups:
- title: 'New Features'
regexp: "^.*FEAT|WATCHER|CLI|EVENT|UTILS|CMD[(\\w)]*:+.*$"
order: 0
- title: 'Fixes'
order: 10
regexp: "^.*FIX|CHORE|BUGFIX|EXAMPLES|BUG[(\\w)]*:+.*$"
- title: 'Workflow Updates'
regexp: "^.*ACTIONS|ACTION[(\\w)]*:+.*$"
order: 20
- title: 'Other things'
order: 999
signs:
- artifacts: checksum
nfpms:
-
replacements:
Expand All @@ -39,12 +77,22 @@ nfpms:
formats:
- deb
- rpm
- apk
brews:
- tap:
-
goarm: 6
tap:
owner: Cian911
name: homebrew-switchboard
folder: Formula
commit_author:
name: Cian911
email: cian@ciangallagher.net
homepage: https://github.com/Cian911/switchboard
description: |
TBD
artifactories:
- name: switchboard-debian
target: https://switchboard.jfrog.io/artifactory/switchboard-debian/{{ .ProjectName }}/{{ .Version }}/
username: cian911-go

0 comments on commit 6f8df85

Please sign in to comment.