Skip to content

Instantly share code, notes, and snippets.

@mariia-cherniuk
Last active September 23, 2020 19:19
Show Gist options
  • Save mariia-cherniuk/6b5efa5a56cad0b2197a91e3ff0f091b to your computer and use it in GitHub Desktop.
Save mariia-cherniuk/6b5efa5a56cad0b2197a91e3ff0f091b to your computer and use it in GitHub Desktop.
desc "Publish GitHub release"
lane :publish_github_release do
Actions.sh("git remote set-url origin git@github.com:your_app_git_url")
git_checkout(remote_branch: ENV['MASTER_BRANCH'])
git_pull
version_number = ENV['MPG_VERSION_NUMBER'].to_s.empty? ? get_version_number : ENV['MPG_VERSION_NUMBER']
publish_github_version_release(branch: ENV['MASTER_BRANCH'], version: version_number)
end
private_lane :publish_github_version_release do |options|
set_github_release(
repository_name: ENV['GITHUB_REPOSITORY'],
name: "#{options[:version]}",
tag_name: "#{options[:version]}",
description: release_description(options[:version]),
commitish: options[:branch],
upload_assets: ["build/AppStore.app.dSYM.zip", "build/AppStore.ipa"]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment