diff --git a/.gx/lastpubver b/.gx/lastpubver new file mode 100644 index 00000000..e69de29b diff --git a/package.json b/package.json index 4e8a21aa..ba814485 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "author": "hector", + "author": "hsanjuan", "bugs": { "url": "https://github.com/ipfs/ipfs-cluster" }, @@ -58,7 +58,7 @@ ], "gxVersion": "0.10.0", "language": "go", - "license": "", + "license": "MIT", "name": "ipfs-cluster", "releaseCmd": "git commit -a -m \"gx publish $VERSION\"", "version": "0.0.0" diff --git a/release.sh b/release.sh new file mode 100755 index 00000000..fcaf5645 --- /dev/null +++ b/release.sh @@ -0,0 +1,16 @@ +#!/bin/bash + +# Updates the Version variables, commits, and "gx release" the package + +version="$1" + +if [ -z $version ]; then + echo "Need a version!" + exit 1 +fi + +git tag v$version +sed -i "s/const Version.*$/const Version = \"$version\"/" version.go +sed -i "s/const Version.*$/const Version = \"$version\"/" ipfs-cluster-ctl/main.go +git commit -a -m "Release $version" +gx release $version