* Upload dSYMs to sentry using swift and the sentry-cli instead of fastlane. * Replace the fastlane `config_production` lane with a swift tools `ConfigureProduction` command. * Replace Zsh with CI.run in the new ConfigureNightly command * Replace the fastlane `tag_nightly` lane with a swift tools `TagNightly` command. * Print out all the commands going through CI.Run and their arguments * Address PR comments
22 lines
691 B
Bash
Executable File
22 lines
691 B
Bash
Executable File
#!/bin/sh
|
|
|
|
source ci_common.sh
|
|
|
|
setup_xcode_cloud_environment
|
|
|
|
# Xcode Cloud shallow clones the repo. We need to deepen it to fetch tags, commit history and be able to rebase main on develop at the end of releases.
|
|
fetch_unshallow_repository
|
|
|
|
# Upload dsyms no matter the workflow
|
|
# Perform this step before releasing to github in case it fails.
|
|
swift run -q tools upload-dsyms --dsym-path "$CI_ARCHIVE_PATH/dSYMs"
|
|
|
|
generate_what_to_test_notes
|
|
|
|
if [ "$CI_WORKFLOW" = "Release" ]; then
|
|
bundle exec fastlane release_to_github
|
|
bundle exec fastlane prepare_next_release
|
|
elif [ "$CI_WORKFLOW" = "Nightly" ]; then
|
|
swift run -q tools ci tag-nightly --build-number "$CI_BUILD_NUMBER"
|
|
fi
|