Skip to content

Commit

Permalink
using goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislas committed Jun 16, 2018
1 parent ca0e43a commit adceb30
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 9 deletions.
30 changes: 30 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# .goreleaser.yml
builds:
- binary: skuld
goos:
- windows
- darwin
- linux
goarch:
- amd64

brew:
github:
owner: DEEP-IMPACT-AG
name: homebrew-hyperdrive
commit_author:
name: codebuild
email: info@deep-impact.ch
homepage: "https://github.com/DEEP-IMPACT-AG/skuld"
description: "CLI tool for AWS MFA credentials"

scoop:
bucket:
owner: DEEP-IMPACT-AG
name: scoop-hyperdrive
commit_author:
name: codebuild
email: info@deep-impact.ch
homepage: "https://github.com/DEEP-IMPACT-AG/skuld"
description: "CLI tool for AWS MFA credentials"
license: Apache 2.0
6 changes: 0 additions & 6 deletions build/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,4 @@

set -e

env

go vet

go get github.com/mitchellh/gox
gox -os "linux darwin windows" -arch "386 amd64"

3 changes: 0 additions & 3 deletions build/clean.sh

This file was deleted.

14 changes: 14 additions & 0 deletions build/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

set +e

git describe --exact-match --tags HEAD
ON_TAG=$?

set -e

if [ "${ON_TAG}" -eq "0" ]; then
curl -sL https://git.io/goreleaser | bash
else
echo "No Tag = No Release"
fi

0 comments on commit adceb30

Please sign in to comment.