retrieve branch from travis env

This commit is contained in:
Maximilian Keßler 2021-10-08 07:54:34 +02:00
parent b8a1c1b0a9
commit 7f0b9bb54c

View file

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