1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(travis): properly deploy a branch for jenkins

Probably works.

Apparently directly pushing tag results in a new tag.
This commit is contained in:
Zetok Zalbavar 2016-12-29 09:20:32 +00:00
parent d4ac13dbf4
commit a444ee1fc2
No known key found for this signature in database
GPG Key ID: C953D3880212068A

View File

@ -20,5 +20,13 @@
# release build
#
# should be run only when a new tag is pushed
git push --force "https://${GH_DEPLOY_JENKINS}@github.com/qTox/qTox.git" \
$(git describe --abbrev=0):for-jenkins-release
set -eu -o pipefail
main() {
git clone https://github.com/qTox/qTox.git qTox
cd qTox
git checkout $(git describe --abbrev=0) -b for-jenkins-release
git push --force "https://${GH_DEPLOY_JENKINS}@github.com/qTox/qTox.git"
}
main