Skip to content

Commit

Permalink
Upload to sentry before releasing/tagging. (#1457)
Browse files Browse the repository at this point in the history
This is to prevent tags being created for CI runs that have failed.
  • Loading branch information
pixlwave authored Aug 7, 2023
1 parent 1e8b894 commit 22c0e38
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 25 deletions.
1 change: 1 addition & 0 deletions changelog.d/pr-1457.build
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Make CI upload dSyms to Sentry before releasing to GitHub to avoid tagging failed runs.
7 changes: 4 additions & 3 deletions ci_scripts/ci_post_xcodebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ source ci_common.sh

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
install_xcode_cloud_python_dependencies

Expand All @@ -12,6 +16,3 @@ if [ "$CI_WORKFLOW" = "Release" ]; then
elif [ "$CI_WORKFLOW" = "Nightly" ]; then
bundle exec fastlane tag_nightly build_number:"$CI_BUILD_NUMBER"
fi

# Upload dsyms no matter the workflow
bundle exec fastlane upload_dsyms_to_sentry dsym_path:"$CI_ARCHIVE_PATH/dSYMs"
22 changes: 0 additions & 22 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -73,28 +73,6 @@ lane :alpha do
upload_to_browserstack()
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
run_tests(
scheme: "UnitTests",
Expand Down

0 comments on commit 22c0e38

Please sign in to comment.