stages:
- build
- deploy
build:
image: reactnativecommunity/react-native-android
stage: build
script:
- yarn install
- cd android && chmod +x gradlew
- ./gradlew assembleRelease
artifacts:
paths:
- android/app/build/outputs/
deploy_tg:
image: curlimages/curl
stage: deploy
script:
- >-
curl
-F chat_id=$TG_CHAT_ID
-F document=@android/app/build/outputs/apk/release/app-release.apk
-F caption=" Branch: $CI_COMMIT_BRANCH
Commit: $CI_COMMIT_SHORT_SHA
Tag(if any): $CI_COMMIT_TAG
$CI_COMMIT_MESSAGE
"
-F parse_mode=html
https://api.telegram.org/bot${TG_BOT_TOKEN}/sendDocument