Skip to content

Commit

Permalink
Merge pull request #19 from WillAbides/semver-next
Browse files Browse the repository at this point in the history
use semver-next for releases
  • Loading branch information
WillAbides authored Nov 20, 2019
2 parents 3ffef06 + c65e2cb commit 1952248
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 3 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: release
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:

- name: Set up Go 1.13
uses: actions/setup-go@v1
with:
go-version: 1.13

- name: check out code
uses: actions/checkout@v1

- name: release
run: script/release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
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 1952248

Please sign in to comment.