Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
Merge pull request #14 from deliveroo/RP-XXX/be-nice-about-goreleaser
Browse files Browse the repository at this point in the history
Be more robust to goreleaser not being installed.
  • Loading branch information
knaveofdiamonds authored Apr 23, 2018
2 parents a3ce295 + 17a27ae commit 159e735
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ $ go test ./...

## Release

In order to release a new version, set up github export GITHUB_TOKEN=[YOUR_TOKEN]
In order to release a new version, set up github export GITHUB_TOKEN=[YOUR_TOKEN]. Make sure that you have goreleaser installed from [goreleaser.com](http://goreleaser.com).

Ensure your git repo is clean. Then update VERSION (no need to commit it, it will be committed automatically), and run:

Expand Down
1 change: 1 addition & 0 deletions release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set -x

die() { echo "$*" 1>&2 ; exit 1; }

which goreleaser || die "Install goreleaser from http://goreleaser.com"
VERSION=`cat VERSION | tr -d '\n'`
git diff-index --quiet --cached HEAD -- || die "Index dirty, commit first"
go generate ./cli
Expand Down

0 comments on commit 159e735

Please sign in to comment.