Beam/ci_scripts/ci_post_xcodebuild.sh
Doug 22c0e38c5d
Upload to sentry before releasing/tagging. (#1457)
This is to prevent tags being created for CI runs that have failed.
2023-08-07 14:52:54 +01:00

19 lines
534 B
Bash
Executable File

#!/bin/sh
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
bundle exec fastlane release_to_github
bundle exec fastlane prepare_next_release
elif [ "$CI_WORKFLOW" = "Nightly" ]; then
bundle exec fastlane tag_nightly build_number:"$CI_BUILD_NUMBER"
fi