Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add brews and nfpms config into goreleaser #15

Merged
merged 11 commits into from
Jun 27, 2020
1 change: 0 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,5 @@ jobs:
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28 changes: 22 additions & 6 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,7 @@
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
dist: ./build/release
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: server
main: ./cmd/main.go
Expand All @@ -19,7 +14,6 @@ builds:
- darwin
goarch:
- amd64

archives:
- name_template: "{{ .ProjectName }}-{{ .Os }}-{{ .Arch }}"
replacements:
Expand All @@ -40,3 +34,25 @@ changelog:
exclude:
- '^docs:'
- '^test:'
brews:
- github:
owner: saltbo
name: homebrew-bin
folder: Formula
homepage: https://github.com/saltbo/uptoc
description: A static file deployment tool that supports multiple platforms
test: |
system "#{bin}/uptoc --version"
nfpms:
- file_name_template: '{{ .ProjectName }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
homepage: https://github.com/saltbo/uptoc
description: A static file deployment tool that supports multiple platforms
maintainer: Ambor <saltbo@foxmail.com>
license: MIT
formats:
- deb
- rpm
dependencies:
- git
recommends:
- golang