Skip to content

Instantly share code, notes, and snippets.

View mariia-cherniuk's full-sized avatar

Mariia Cherniuk mariia-cherniuk

  • London, United Kingdom
View GitHub Profile
deploy-testflight-pr:
only:
- external_pull_requests
stage: deploy-testflight-pr
needs: [ui-regression]
stage: deploy-testflight-pr
tags: [osx]
when: manual
script:
- bundle exec fastlane testflight_beta
desc "Submits a new beta build to \"Apple TestFlight\""
lane :testflight_beta do
build(profile_type: "appstore", scheme: "TestFlight", app_identifier: "your_app_identifier")
pilot(skip_waiting_for_build_processing: true)
end
deploy-testflight:
only:
refs:
- develop
stage: deploy-testflight
tags: [osx]
script:
- bundle exec fastlane testflight_beta
publish-jira-release:
only:
refs:
- develop
needs: [submit-appstore]
stage: publish-artifacts
tags: [osx]
allow_failure: false
script:
- bundle exec fastlane publish_jira_release
desc "Publish jira release"
lane :publish_jira_release do
Actions.sh("git remote set-url origin [email protected]: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_jira_version_release(version: version_number)
end
desc "Closes tickets and publish a \"Jira\" release"
upload-symbols:
only:
refs:
- develop
needs: [submit-appstore]
stage: publish-artifacts
tags: [osx]
allow_failure: false
script:
- bundle exec fastlane upload_symbols
desc "Upload symbols to Crashlytics"
lane :upload_symbols do
upload_symbols_to_crashlytics(dsym_path: "build/AppStore.app.zip", gsp_path: "Firebase/GoogleService-App.plist")
end
publish-github-release:
only:
refs:
- develop
needs: [publish-jira-release, submit-appstore]
stage: publish-github-release
tags: [osx]
dependencies:
- submit-appstore
allow_failure: false
desc "Publish GitHub release"
lane :publish_github_release do
Actions.sh("git remote set-url origin [email protected]: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|
minor-version-bump:
only:
refs:
- develop
needs: [publish-github-release]
stage: minor-version-bump
tags: [osx]
allow_failure: false
script:
- bundle exec fastlane bump_version