Want to upload flutter release app to the app center with Gitlab CI/CD.
I want to know is how to add or write script for app release note within .gitlab-ci.yml
. Here is my example deploy script and how to make it.
deploy_android_to_appcenter:
stage: deploy
only:
- XXXX/XXXX
script:
- appcenter login --token $APPCENTER_API_TOKEN
- appcenter distribute release -f build/app/outputs/apk/release/app-release.apk -g Collaborators —app [Name]/[App-Name]
tags:
- branchName
2
Answers
I found the answer from git hub issue. By adding
--release-notes "$(cat release_notes.*)"
insideappcenter distribute release
shell command. And need to create release_notes.md inside the root of project. But always update manually that file for every build.Example:
To add a script for app release notes within your GitLab CI/CD configuration file (.gitlab-ci.yml), you can use a combination of GitLab CI variables and scripting.