Last active
September 23, 2020 19:19
-
-
Save mariia-cherniuk/6b5efa5a56cad0b2197a91e3ff0f091b to your computer and use it in GitHub Desktop.
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 "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