From 92155a8a07195931a2af8b751cf659529fa3016f Mon Sep 17 00:00:00 2001 From: longer Date: Tue, 24 Aug 2021 11:50:32 +0800 Subject: [PATCH] feat:cd travis android --- .travis.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.travis.yml b/.travis.yml index 11dcddb..591a37b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -34,6 +34,16 @@ matrix: script: - yes | flutter doctor --android-licenses - flutter doctor && flutter -v build apk + # 声明部署的策略,即上传 apk 至 github release + deploy: + provider: releases + api_key: ${GITHUB_TOKEN} + file: + - build/app/outputs/apk/release/app-release.apk + skip_cleanup: true + on: + tags: true + # 声明 iOS 的运行环境 - os: osx