Skip to content

Instantly share code, notes, and snippets.

@hjanuschka
Last active November 7, 2016 18:54
Show Gist options
  • Save hjanuschka/4db28a3e949d81a4e17c5adc996ac769 to your computer and use it in GitHub Desktop.
Save hjanuschka/4db28a3e949d81a4e17c5adc996ac769 to your computer and use it in GitHub Desktop.
lane :pod_update do
#reset podspec to latest tag
version_bump_podspec(
version_number: last_git_tag
)
#increment podspec by one
new_tag = version_bump_podspec
# add a tag
add_git_tag(
tag: new_tag,
)
push_git_tags
git_commit(path: "kmmsologin.podspec", message: "Pod Bump [ci skip]")
push_to_git_remote
# publish the updated podspec
pod_push(path: "kmmsologin.podspec", allow_warnings: true, use_libraries: true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment