Skip to content

Commit

Permalink
Revert "Replace manual releases with equinox.io release page"
Browse files Browse the repository at this point in the history
This reverts commit ee9aac2.
  • Loading branch information
kevinburke committed Mar 1, 2020
1 parent ad0746d commit ac65ee6
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ SHELL = /bin/bash -o pipefail
BENCHSTAT := $(GOPATH)/bin/benchstat
DIFFER := $(GOPATH)/bin/differ
STATICCHECK := $(GOPATH)/bin/staticcheck
RELEASE := $(GOPATH)/bin/github-release
WRITE_MAILMAP := $(GOPATH)/bin/write_mailmap

UNAME := $(shell uname)
Expand Down Expand Up @@ -68,5 +69,20 @@ ifndef version
@echo "Please provide a version"
exit 1
endif
ifndef GITHUB_TOKEN
@echo "Please set GITHUB_TOKEN in the environment"
exit 1
endif
# If you don't push these, Github creates a tagged release for you from the
# wrong commit.
git push origin master
git push origin --tags
mkdir -p releases/$(version)
GOOS=linux GOARCH=amd64 go build -o releases/$(version)/go-bindata-linux-amd64 ./go-bindata
GOOS=darwin GOARCH=amd64 go build -o releases/$(version)/go-bindata-darwin-amd64 ./go-bindata
GOOS=windows GOARCH=amd64 go build -o releases/$(version)/go-bindata-windows-amd64 ./go-bindata
# these commands are not idempotent so ignore failures if an upload repeats
$(RELEASE) release --user kevinburke --repo go-bindata --tag $(version) || true
$(RELEASE) upload --user kevinburke --repo go-bindata --tag $(version) --name go-bindata-linux-amd64 --file releases/$(version)/go-bindata-linux-amd64 || true
$(RELEASE) upload --user kevinburke --repo go-bindata --tag $(version) --name go-bindata-darwin-amd64 --file releases/$(version)/go-bindata-darwin-amd64 || true
$(RELEASE) upload --user kevinburke --repo go-bindata --tag $(version) --name go-bindata-windows-amd64 --file releases/$(version)/go-bindata-windows-amd64 || true
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,14 @@ On Macs, you can install the binary using [Homebrew](https://brew.sh):
brew install go-bindata
```

Binary installs for every language are provided by `equinox.io`. Install
go-bindata for your platform by following the instructions here:
https://go.equinox.io/github.com/kevinburke/go-bindata/go-bindata
You can also download a binary from the [releases page][releases]. Switch in
your GOOS for the word "linux" below, and the latest version for the version
listed below:

```
curl --silent --location --output /usr/local/bin/go-bindata https://github.com/kevinburke/go-bindata/releases/download/v3.11.0/go-bindata-linux-amd64
chmod 755 /usr/local/bin/go-bindata
```

Alternatively, you can download the source code, if you have a working Go
installation:
Expand All @@ -51,6 +56,8 @@ installation:
go get -u github.com/kevinburke/go-bindata/...
```

[releases]: https://github.com/kevinburke/go-bindata/releases

### Usage

Conversion is done on one or more sets of files. They are all embedded in a new
Expand Down

0 comments on commit ac65ee6

Please sign in to comment.