From a81a83c2d9abcd9b90f8d0af79b2c12b5a1cb594 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Ke=C3=9Fler?= Date: Fri, 8 Oct 2021 07:32:21 +0200 Subject: [PATCH] deploy to build repo --- .travis.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/.travis.yml b/.travis.yml index 306ce29..02a6e6c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,7 @@ script: - cd build - zip -r LatexPackages.zip LatexPackages - tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html + - GIT_BRANCH=$(python3 -c "import git; print(git.Repo().active_branch.name)") deploy: - provider: pages @@ -34,3 +35,16 @@ deploy: file: $TRAVIS_BUILD_DIR/build/LatexPackages.zip on: tags: true + - provider: pages + skip-cleanup: true + github-token: $GITHUB_TOKEN + local-dir: build/LatexPackages + repo: kesslermaximilian/LatexPackagesBuild + commiter_from_gh: true + allow_empty_commit: true + keep-history: true + target_branch: $GIT_BRANCH + on: + branches: + only: + - /.*/