Renamed apk is not visible as artifacts in slack notification for download
hashirshoaeb opened this issue · 1 comments
hashirshoaeb commented
Discussed in https://github.com/orgs/codemagic-ci-cd/discussions/2155
Originally posted by hashirshoaeb October 27, 2023
If you are looking for help, please confirm the following...
- I confirm I have searched the Docs, Codemagic Sample Projects, and GitHub Discussions.
- I confirm the software versions on my local computer match the ones in CI environment (e.g. Xcode version, Gradle version). See here
- I confirm I am able to do a fresh clone of the repository and build the project on my local computer.
Which mobile framework are you using?
Flutter (Dart)
Steps to reproduce
I'm using workflow editor and added a post-build script, to rename the apk file and added it in artifacts but it is not visible in slack notification.
here is my script:
#!/bin/sh
set -e
set -x
echo "renaming apk file to $CM_TAG";
if [ -n "$CM_TAG" ]; then
mv build/app/outputs/flutter-apk/app-qa-release.apk build/app/outputs/flutter-apk/$CM_TAG.apk;
cp build/app/outputs/flutter-apk/$CM_TAG.apk "$CM_EXPORT_DIR";
fi
Expected results
Notification should have link for apk under artifacts
Actual results
slack notificaiton without script
apk is visible under artifacts
notification after renaming the file using script
Build id (optional)
No response
hashirshoaeb commented
Answered here: https://github.com/orgs/codemagic-ci-cd/discussions/2155