Upload to sentry before releasing/tagging. (#1457)
This is to prevent tags being created for CI runs that have failed.
This commit is contained in:
1
changelog.d/pr-1457.build
Normal file
1
changelog.d/pr-1457.build
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Make CI upload dSyms to Sentry before releasing to GitHub to avoid tagging failed runs.
|
||||||
@@ -4,6 +4,10 @@ source ci_common.sh
|
|||||||
|
|
||||||
setup_xcode_cloud_environment
|
setup_xcode_cloud_environment
|
||||||
|
|
||||||
|
# Upload dsyms no matter the workflow
|
||||||
|
# Perform this step before releasing to github in case it fails.
|
||||||
|
bundle exec fastlane upload_dsyms_to_sentry dsym_path:"$CI_ARCHIVE_PATH/dSYMs"
|
||||||
|
|
||||||
if [ "$CI_WORKFLOW" = "Release" ]; then
|
if [ "$CI_WORKFLOW" = "Release" ]; then
|
||||||
install_xcode_cloud_python_dependencies
|
install_xcode_cloud_python_dependencies
|
||||||
|
|
||||||
@@ -12,6 +16,3 @@ if [ "$CI_WORKFLOW" = "Release" ]; then
|
|||||||
elif [ "$CI_WORKFLOW" = "Nightly" ]; then
|
elif [ "$CI_WORKFLOW" = "Nightly" ]; then
|
||||||
bundle exec fastlane tag_nightly build_number:"$CI_BUILD_NUMBER"
|
bundle exec fastlane tag_nightly build_number:"$CI_BUILD_NUMBER"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Upload dsyms no matter the workflow
|
|
||||||
bundle exec fastlane upload_dsyms_to_sentry dsym_path:"$CI_ARCHIVE_PATH/dSYMs"
|
|
||||||
@@ -73,28 +73,6 @@ lane :alpha do
|
|||||||
upload_to_browserstack()
|
upload_to_browserstack()
|
||||||
end
|
end
|
||||||
|
|
||||||
lane :app_store_release do
|
|
||||||
build_release()
|
|
||||||
|
|
||||||
release_to_github()
|
|
||||||
|
|
||||||
prepare_next_release()
|
|
||||||
|
|
||||||
upload_dsyms_to_sentry(dsym_path: './build/ElementX.app.dSYM.zip')
|
|
||||||
end
|
|
||||||
|
|
||||||
lane :build_release do
|
|
||||||
bump_build_number()
|
|
||||||
|
|
||||||
build_ios_app(
|
|
||||||
scheme: "ElementX",
|
|
||||||
clean: true,
|
|
||||||
export_method: "app-store",
|
|
||||||
output_directory: "build",
|
|
||||||
xcargs: "-allowProvisioningUpdates",
|
|
||||||
)
|
|
||||||
end
|
|
||||||
|
|
||||||
lane :unit_tests do
|
lane :unit_tests do
|
||||||
run_tests(
|
run_tests(
|
||||||
scheme: "UnitTests",
|
scheme: "UnitTests",
|
||||||
|
|||||||
Reference in New Issue
Block a user