Skip to content

Commit

Permalink
Add goreleaser config and update gitignore and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
emi80 committed Nov 19, 2019
1 parent 7522dfd commit c5ae089
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.DS_Store
bin/
tmp/
dist/
31 changes: 31 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Goreleaser config file for bamstats
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
main: ./cmd/bamstats/main.go
ldflags: -s -w -X main.version={{ .Version }} -X main.commit={{ .ShortCommit }} -X main.date={{ .Date }}
archives:
- name_template: '{{ .ProjectName }}-{{ if ne .Version "dev" }}v{{ end }}{{ .Version }}-{{ .Os }}-{{ .Arch }}'
replacements:
386: i386
amd64: x86_64
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
snapshot:
name_template: "dev"
changelog:
sort: desc
filters:
exclude:
- '^docs:'
- '^test:'
- 'goreleaser'
- '^Bump'
release:
github:
owner: guigolab
name: bamstats
name_template: "Version {{.Version}}"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Use one of the following methods to install `Bamstats`.
The easiest way is to download a pre-compiled binary from Github [releases](https://github.com/guigolab/bamstats/releases). Here is an example for installing the latest released version on Linux 64bit:

```
export VERSION=0.3.2 OS=linux ARCH=amd64 BIN=/usr/local/bin
wget -O - https://github.com/guigolab/bamstats/releases/download/v${VERSION}/bamstats-v${VERSION}-${OS}-${ARCH}.tar.bz2 | tar xj --strip-components 3 -C ${BIN}
export VERSION=0.3.5 OS=linux ARCH=x86_64 BIN=/usr/local/bin
wget -O - https://github.com/guigolab/bamstats/releases/download/v${VERSION}/bamstats-v${VERSION}-${OS}-${ARCH}.tar.gz | tar xz -C ${BIN} bamstats
```

### Install the latest version with go
Expand Down

0 comments on commit c5ae089

Please sign in to comment.