ipfs-cluster/release.sh

17 lines
393 B
Bash
Raw Normal View History

#!/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