Last active
April 20, 2018 20:03
-
-
Save armcknight/be6c3d33305b720cd48cba71e1088fc2 to your computer and use it in GitHub Desktop.
A rake task to release a cocoapod spec and record the version information to git.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
desc 'Create git tags and push them to remote, push podspec to CocoaPods.' | |
task :release do | |
version = `vrsn --read --file #{version_file}` | |
sh "git tag #{version.strip}" | |
sh 'git push --tags' | |
sh 'pod trunk push' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment