Skip to content

Instantly share code, notes, and snippets.

@pepicrft
Created August 24, 2016 19:50
Show Gist options
  • Select an option

  • Save pepicrft/10fc829c81c395b3811d8e05fed8e708 to your computer and use it in GitHub Desktop.

Select an option

Save pepicrft/10fc829c81c395b3811d8e05fed8e708 to your computer and use it in GitHub Desktop.
lane :deploy do
ensure_git_branch
version = version_bump_podspec(path: "MyPod.podspec")
git_commit(path: ["./MyPod.podspec", "./Example/MyPod.lock"], message: "Bumped to version #{version}")
push_to_git_remote(remote_branch: 'master', force: false, tags: true)
changelog = changelog_from_git_commits
github_release = set_github_release(
repository_name: "MyOrg/MyPod",
api_token: ENV['GITHUB_TOKEN'],
name: version,
tag_name: version,
description: changelog,
commitish: "master"
)
sh("git fetch --tags")
pod_push(allow_warnings: true, verbose: true)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment