retrieve branch from travis env
This commit is contained in:
parent
b8a1c1b0a9
commit
7f0b9bb54c
1 changed files with 2 additions and 3 deletions
|
@ -15,8 +15,6 @@ install:
|
||||||
- pip install GitPython
|
- pip install GitPython
|
||||||
|
|
||||||
script:
|
script:
|
||||||
- git status
|
|
||||||
- GIT_BRANCH=$(python3 -c "import git; print(git.Repo().active_branch.name)")
|
|
||||||
- python3 -c 'from build import build; build("build/LatexPackages/")'
|
- python3 -c 'from build import build; build("build/LatexPackages/")'
|
||||||
- cd build
|
- cd build
|
||||||
- zip -r LatexPackages.zip LatexPackages
|
- zip -r LatexPackages.zip LatexPackages
|
||||||
|
@ -44,8 +42,9 @@ deploy:
|
||||||
commiter_from_gh: true
|
commiter_from_gh: true
|
||||||
allow_empty_commit: true
|
allow_empty_commit: true
|
||||||
keep-history: true
|
keep-history: true
|
||||||
target_branch: $GIT_BRANCH
|
target_branch: $TRAVIS_BRANCH
|
||||||
on:
|
on:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- /.*/
|
- /.*/
|
||||||
|
condition: $TRAVIS_PULL_REQUEST = false
|
||||||
|
|
Loading…
Reference in a new issue