Skip to content

Commit

Permalink
Release Homebrew tap in the first pass
Browse files Browse the repository at this point in the history
  • Loading branch information
errordeveloper committed Jun 19, 2018
1 parent d07c768 commit 55893b3
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions do-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,11 @@

if [ -z "${CIRCLE_PULL_REQUEST}" ] && [ -n "${CIRCLE_TAG}" ] && [ "${CIRCLE_PROJECT_USERNAME}" = "weaveworks" ] ; then
export RELEASE_DESCRIPTION="${CIRCLE_TAG} (permalink)"
goreleaser release --config=./.goreleaser.yml
cat ./.goreleaser.yml ./.goreleaser.brew.yml > .goreleaser.brew.combined.yml
goreleaser release --config=./.goreleaser.brew.combined.yml

sleep 90 # GitHub API resolves the time to the nearest minute, so in order to control the sorting oder we need this

cat ./.goreleaser.yml ./.goreleaser.brew.yml > .goreleaser.brew.combined.yml
goreleaser release --rm-dist --config=./.goreleaser.brew.combined.yml

git tag --delete "${CIRCLE_TAG}"
git tag --force latest_release

Expand Down

0 comments on commit 55893b3

Please sign in to comment.