Skip to content

Commit

Permalink
Release script
Browse files Browse the repository at this point in the history
  • Loading branch information
mivok committed Jun 11, 2018
1 parent 48f2f8a commit 31d2588
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
builds:
- goos:
- darwin
- linux
goarch:
- amd64
- arm
12 changes: 12 additions & 0 deletions release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash
VERSION=$(grep Version version.go | awk -F'"' '{print $2}')
echo "=> Version: $VERSION"

PROGNAME="${PWD##*/}"

echo "=> Tagging current release"
git tag "$VERSION"
echo "=> Pushing tag"
git push origin "$VERSION"

goreleaser

0 comments on commit 31d2588

Please sign in to comment.