PromiseKit/.github/release
Max Howell 83bb0f1ae7
Add release script
Update travis cocoapods version we install

Add tagging to ranger configuration.
2019-01-29 13:31:06 -05:00

18 lines
399 B
Bash
Executable File

#!/bin/sh
set -euxo pipefail
if [ -z "$1" ]; then
echo "No argument supplied"
exit 1
fi
Vn=$1
Vo=$(git tag | tail -1)
sed -i "" "s/CURRENT_PROJECT_VERSION = $Vo;/CURRENT_PROJECT_VERSION = $Vn;/" PromiseKit.xcodeproj/project.pbxproj
git add PromiseKit.xcodeproj/project.pbxproj
git commit -m "Tag $Vn"
git tag $Vn
git push origin $Vn
open "https://github.com/mxcl/PromiseKit/releases/tag/$Vn"