Skip to content

Instantly share code, notes, and snippets.

@Tulakshana
Last active September 1, 2016 05:30
Show Gist options
  • Save Tulakshana/f57b92a30c5562568fb17ae28198ebb3 to your computer and use it in GitHub Desktop.
Save Tulakshana/f57b92a30c5562568fb17ae28198ebb3 to your computer and use it in GitHub Desktop.
Run this script in a post integration trigger to distribute the latest build as a beta release to crashlytics. The script assumes that you have integrated crashlytics through cocoa pods. The script also extracts the latest commit message of the git branch and adds it as the release note.
cd "${XCS_SOURCE_DIR}/<project directory name>"
git log -1 --pretty=%B > "releaseNote.txt"
"Pods/Crashlytics/submit" <key> <secret> \
-notesPath "releaseNote.txt" \
-ipaPath "${XCS_PRODUCT}" -groupAliases <your distribution group> \
-notifications YES
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment