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/.gradle/wrapper/
|
||||||
- $HOME/.android/build-cache
|
- $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:
|
deploy:
|
||||||
provider: releases
|
provider: releases
|
||||||
api_key:
|
api_key:
|
||||||
|
|
@ -33,5 +37,5 @@ deploy:
|
||||||
- app/build/outputs/apk/release/app-release-unsigned.apk
|
- app/build/outputs/apk/release/app-release-unsigned.apk
|
||||||
on:
|
on:
|
||||||
repo: stevesoltys/backup
|
repo: stevesoltys/backup
|
||||||
tags: true
|
all_branches: true
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
BASE_URL="https://github.com/stevesoltys/backup/releases"
|
BASE_URL="https://github.com/stevesoltys/backup/releases"
|
||||||
APK="app-release-unsigned.apk"
|
APK="app-release-unsigned.apk"
|
||||||
VERSION="latest/download"
|
VERSION=$(git rev-parse --short HEAD)
|
||||||
TAG=$(git tag -l --points-at HEAD)
|
TAG=$(git tag -l --points-at HEAD)
|
||||||
|
|
||||||
if [ ! -z ${TAG} ]; then
|
if [ ! -z ${TAG} ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue