Skip to content

Commit

Permalink
add brews and nfpms config into goreleaser (#15)
Browse files Browse the repository at this point in the history
* chore: add brews and nfpms config into goreleaser
  • Loading branch information
saltbo committed Jun 27, 2020
1 parent 3730939 commit e1ba4fa
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 7 deletions.
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

0 comments on commit e1ba4fa

Please sign in to comment.