1
0
Fork 0

Generate release for each commit and download during build

This commit is contained in:
Steve Soltys 2019-08-03 23:55:13 -04:00
parent 877a62766f
commit 76bb8cd9f4
2 changed files with 6 additions and 2 deletions

View file

@ -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

View file

@ -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