Skip to content

Commit

Permalink
Merge pull request #8 from kintoandar/bintray_decomission
Browse files Browse the repository at this point in the history
Replace bintray with goreleaser
  • Loading branch information
kintoandar committed Feb 28, 2021
2 parents 539f482 + 9268fec commit fae93cd
Show file tree
Hide file tree
Showing 4 changed files with 70 additions and 18 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- 'v*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.15
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39 changes: 39 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
before:
hooks:
- go mod download
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
flags:
- -tags=netgo
- -v
goos:
- linux
- windows
- darwin
main: ./cmd/fwd/main.go
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}'
format: tar.gz
checksum:
name_template: '{{ .ProjectName }}_checksum.txt'
algorithm: sha256
snapshot:
name_template: '{{ .Tag }}-SNAPSHOT-{{ .ShortCommit }}'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
github:
owner: kintoandar
name: fwd
15 changes: 0 additions & 15 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ env:
- PATH=/home/travis/gopath/bin:$PATH

before_install:
- go get github.com/mitchellh/gox
- go get golang.org/x/lint/golint

install:
Expand All @@ -16,17 +15,3 @@ install:
script:
- go vet ./...
- golint ./...

after_success:
- gox -output "dist/{{.Dir}}_{{.OS}}_{{.Arch}}" ./...
- cd dist ; for I in $(ls *) ; do md5sum $I > $I.md5 ; done ; cd -

deploy:
skip_cleanup: true
file: .bintray.json
provider: bintray
user: kintoandar
key:
secure: qQhey1OmUotAYFIghHFmUNBmB3UpzGmrTYVtuh17e9jGtpxnZ7bWPWsxwouBEmfavGljMg8lo9lm5LcIF+fRHlNSmh7GCTqMxfCiihFgVWwW5u6JVIhwvtFaG3WS3PqcqRkvka+//UveU4mlsgEEmXvjeCfHCShCc/5PP5e6+uZDbOSb6kq6mglptTLaM+DOXnriq+s0T+LOcTzO9mztltSJzoLmn8G3KEbrmPIsaBa/0D1ImE3dxKeeMu4UCmD3D5xbLIdnM+Tg+IorQdGvjALrqxchR9VNFU/bL9dTj1qhoRmLVeBTO1R3hFQjsmcUKw3lTkJycEMgmWHTqog8KFFr9nXRKBSKIPaCtErBjWFtQO+/eEpnivONooXIfBayqMWcyXZ6PDAIeZthGNY8DqRotx6SsfJV+8F9vzorh34eQ4+yEhi9lsXcClxocZNbdlPo026afg/Ud+QiYsFIZq3xkP5yGe0DTB1xAuMULSFNzKVWjQ7mJx7t8tQ5JtZjVFE0w9QT6cUnaWEyv/Mtryq9MB5UHjr1KuIcBmBeWmW97mCbK6b67iDPZbVA01bF9f3l/zJrHhjLVXkCVC19P00w4zjT5N/paoW7zhmqVtx2vUm9OMTgnRilI2LYQqCzujP6CoNaDefXGZLZXSbgsPJVHkj+x7tUmSkTLGX0FY0=
on:
tags: true
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,10 @@ curl +---------------------> | fwd | +-------------------------> | web |
## Install
Get the binaries or build it yourself.

### Binary Releases
### Releases
Download prebuilt binaries for several platforms and architectures:

[![bintray](https://docs.google.com/uc?id=0B-SEc73VBiUwQ0NNLWRXdUN1M3c)](https://dl.bintray.com/kintoandar/fwd/)
[Bintray](https://dl.bintray.com/kintoandar/fwd/)
[Releases](https://github.com/kintoandar/fwd/releases)

### Go Tool
```
Expand Down

0 comments on commit fae93cd

Please sign in to comment.