Skip to content

Commit

Permalink
release bump
Browse files Browse the repository at this point in the history
  • Loading branch information
aybabtme committed Sep 1, 2016
1 parent 84ebbe4 commit 966d709
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@ $ go get -u github.com/aybabtme/humanlog/...
## On linux

```bash
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.8/humanlog_linux_amd64.tar.gz | tar xvz
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.9/humanlog_linux_amd64.tar.gz | tar xvz
```

## On OS X

```bash
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.8/humanlog_darwin_amd64.tar.gz | tar xvz
wget -qO- https://github.com/aybabtme/humanlog/releases/download/0.1.9/humanlog_darwin_amd64.tar.gz | tar xvz
```

# Example
Expand Down Expand Up @@ -53,7 +53,7 @@ USAGE:
humanlog [global options] command [command options] [arguments...]
VERSION:
0.1.8
0.1.9
AUTHOR:
Antoine Grondin - <[email protected]>
Expand Down
22 changes: 11 additions & 11 deletions scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,27 +20,27 @@ fi

set -u -e

rm -rf /tmp/temple_build/
rm -rf /tmp/humanlog_build/

mkdir -p /tmp/temple_build/linux
GOOS=linux godep go build -ldflags "-X main.version=$VERSION" -o /tmp/temple_build/linux/temple ../
pushd /tmp/temple_build/linux/
tar cvzf /tmp/temple_build/temple_linux.tar.gz temple
mkdir -p /tmp/humanlog_build/linux
GOOS=linux godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/linux/humanlog ../
pushd /tmp/humanlog_build/linux/
tar cvzf /tmp/humanlog_build/humanlog_linux.tar.gz humanlog
popd

mkdir -p /tmp/temple_build/darwin
GOOS=darwin godep go build -ldflags "-X main.version=$VERSION" -o /tmp/temple_build/darwin/temple ../
pushd /tmp/temple_build/darwin/
tar cvzf /tmp/temple_build/temple_darwin.tar.gz temple
mkdir -p /tmp/humanlog_build/darwin
GOOS=darwin godep go build -ldflags "-X main.version=$VERSION" -o /tmp/humanlog_build/darwin/humanlog ../
pushd /tmp/humanlog_build/darwin/
tar cvzf /tmp/humanlog_build/humanlog_darwin.tar.gz humanlog
popd

temple file < README.tmpl.md > ../README.md -var "version=$VERSION"
git add ../README.md
git commit -m 'release bump'

hub release create \
-a /tmp/temple_build/temple_linux.tar.gz \
-a /tmp/temple_build/temple_darwin.tar.gz \
-a /tmp/humanlog_build/humanlog_linux.tar.gz \
-a /tmp/humanlog_build/humanlog_darwin.tar.gz \
$VERSION

git push origin master

0 comments on commit 966d709

Please sign in to comment.