Generate release for each commit and download during build
This commit is contained in:
parent
877a62766f
commit
76bb8cd9f4
2 changed files with 6 additions and 2 deletions
|
@ -25,6 +25,10 @@ cache:
|
|||
- $HOME/.gradle/wrapper/
|
||||
- $HOME/.android/build-cache
|
||||
|
||||
before_deploy:
|
||||
- git config --local user.name "Steve Soltys"
|
||||
- git config --local user.email "github@stevesoltys.com"
|
||||
- if ! [[ $TRAVIS_TAG ]]; then git tag $(git rev-parse --short HEAD); fi
|
||||
deploy:
|
||||
provider: releases
|
||||
api_key:
|
||||
|
@ -33,5 +37,5 @@ deploy:
|
|||
- app/build/outputs/apk/release/app-release-unsigned.apk
|
||||
on:
|
||||
repo: stevesoltys/backup
|
||||
tags: true
|
||||
all_branches: true
|
||||
skip_cleanup: true
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
BASE_URL="https://github.com/stevesoltys/backup/releases"
|
||||
APK="app-release-unsigned.apk"
|
||||
VERSION="latest/download"
|
||||
VERSION=$(git rev-parse --short HEAD)
|
||||
TAG=$(git tag -l --points-at HEAD)
|
||||
|
||||
if [ ! -z ${TAG} ]; then
|
||||
|
|
Loading…
Add table
Reference in a new issue