Keep only one zip build per branch (#3110)

This commit is contained in:
jekkos
2021-06-09 13:15:30 +02:00
committed by GitHub
parent 9ca998d523
commit cff79601e4

View File

@@ -31,10 +31,10 @@ before_deploy:
- date=`date +%Y%m%d%H%M%S` && branch=${TRAVIS_BRANCH} && rev=`git rev-parse --short=6 HEAD`
- TRAVIS_TAG=$(echo $branch)
- git tag -f "$branch"
- sudo mv dist/opensourcepos.zip "dist/opensourcepos.$date.$branch.$rev.zip"
- sudo mv dist/opensourcepos.zip "dist/opensourcepos.$branch.zip"
deploy:
provider: releases
file: "dist/opensourcepos.$date.$branch.$rev.zip"
file: "dist/opensourcepos.$branch.zip"
name: "$TAG"
release_notes_file: WHATS_NEW.txt
prerelease: true
@@ -45,4 +45,4 @@ deploy:
api_key:
secure: Ax25mMRDfHVf/HjRwqxYJe2oMnWC4sc2aKIiUxAOviVJJSCl4GMWhcFlUNnFsDcKIg2ofEGMVD6b9cTBuOwPDvymUDFnLNCCgDWve+vRDdWaTkTipn77Qk4c9UO9VvuzlPSKopChefPHlQ0n1rEmAMiKIXuqjUlNGqybW4FLP4E=
on:
all_branches: true
all_branches: true