Skip to content

Instantly share code, notes, and snippets.

@armcknight
Last active April 20, 2018 20:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save armcknight/be6c3d33305b720cd48cba71e1088fc2 to your computer and use it in GitHub Desktop.
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.
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