Uploading custom artifacts

How to upload files to be included in your build artifacts ZIP file

You can use a script to upload custom artifacts, such as screenshots, to $FCI_EXPORT_DIR and include them in the build artifacts ZIP file generated by Codemagic.

For example, in a codemagic.yaml script step or Flutter workflow editor post-test script, use this command to copy build screenshots to $FCI_EXPORT_DIR to be exported:

#!/usr/bin/env sh

cp  -r build/screenshots $FCI_EXPORT_DIR/screenshots