Skip to content

Commit

Permalink
use semver-next for script/release
Browse files Browse the repository at this point in the history
  • Loading branch information
WillAbides committed Nov 20, 2019
1 parent 3ffef06 commit 77fd73b
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ bin/goreleaser: bin/bindownloader
bin/bindownloader $@
bins += bin/goreleaser

bin/semver-next: bin/bindownloader
bin/bindownloader $@
bins += bin/semver-next

GOIMPORTS_REF := 8aaa1484dc108aa23dcf2d4a09371c0c9e280f6b
bin/goimports: bin/gobin
GOBIN=${CURDIR}/bin \
Expand Down
18 changes: 18 additions & 0 deletions buildtools.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,23 @@
"move-from": "goreleaser",
"bin": "goreleaser"
}
],
"semver-next": [
{
"os": "darwin",
"arch": "amd64",
"url": "https://github.com/WillAbides/semver-next/releases/download/v0.4.0/semver-next_0.4.0_darwin_amd64.tar.gz",
"checksum": "a519f2c3bbe8972deb094d56c196fec89496f663431321c22be343ced23839fb",
"move-from": "semver-next",
"bin": "semver-next"
},
{
"os": "linux",
"arch": "amd64",
"url": "https://github.com/WillAbides/semver-next/releases/download/v0.4.0/semver-next_0.4.0_linux_amd64.tar.gz",
"checksum": "6317c36bec63158038381e8878601151ae996310fef58306f70cb03f1b46ef7f",
"move-from": "semver-next",
"bin": "semver-next"
}
]
}
12 changes: 9 additions & 3 deletions script/release
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,15 @@ set -e

CDPATH="" cd -- "$(dirname -- "$(dirname -- "$0")")"

corecount="$(getconf _NPROCESSORS_ONLN)"
make -s bin/goreleaser bin/semver-next

make -s bin/goreleaser
bin/goreleaser release --rm-dist --parallelism="$corecount"
GITHUB_SHA="${GITHUB_SHA:-"$(git rev-parse HEAD)"}"
GITHUB_REPOSITORY="${GITHUB_REPOSITORY:-"WillAbides/bindownloader"}"

bin/semver-next "$GITHUB_REPOSITORY" -r "$GITHUB_SHA" --create-tag

git fetch --tags

bin/goreleaser release
script/build-bootstrapper
script/upload-release-bootstrap

0 comments on commit 77fd73b

Please sign in to comment.