1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-03-17 20:58:08 +02:00

Use goreleaser.

This commit is contained in:
Alec Thomas 2017-09-25 16:34:49 +10:00
parent b0295f66bd
commit a75ba5dc2c
2 changed files with 34 additions and 0 deletions

31
.goreleaser.yml Normal file
View File

@ -0,0 +1,31 @@
project_name: chroma
release:
github:
owner: alecthomas
name: chroma
brew:
install: bin.install "chroma"
builds:
- goos:
- linux
- darwin
- windows
goarch:
- amd64
- "386"
goarm:
- "6"
main: .
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
binary: cmd/chroma
archive:
format: tar.gz
name_template: '{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{
.Arm }}{{ end }}'
files:
- COPYING
- README*
snapshot:
name_template: SNAPSHOT-{{ .Commit }}
checksum:
name_template: '{{ .ProjectName }}_{{ .Version }}_checksums.txt'

View File

@ -1,2 +1,5 @@
sudo: false
language: go
after_success:
go get github.com/goreleaser/goreleaser && goreleaser