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:
parent
d4ac13dbf4
commit
a444ee1fc2
|
@ -20,5 +20,13 @@
|
||||||
# release build
|
# release build
|
||||||
#
|
#
|
||||||
# should be run only when a new tag is pushed
|
# 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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user