2021-10-07 19:47:47 +02:00
|
|
|
sudo: true
|
|
|
|
dist: bionic
|
|
|
|
language: python
|
|
|
|
cache: apt
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- tree
|
|
|
|
- latexmk
|
|
|
|
- biber
|
|
|
|
- make
|
|
|
|
|
|
|
|
install:
|
|
|
|
- pip install GitPython
|
|
|
|
|
|
|
|
script:
|
2021-10-07 21:47:54 +02:00
|
|
|
- python3 -c 'from build import build; build("build/LatexPackages/")'
|
2021-10-07 19:47:47 +02:00
|
|
|
- cd build
|
2021-10-07 21:47:54 +02:00
|
|
|
- zip -r LatexPackages.zip LatexPackages
|
2021-10-07 19:47:47 +02:00
|
|
|
- tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html
|
2021-10-08 08:21:48 +02:00
|
|
|
- cd ..
|
|
|
|
|
|
|
|
after_success:
|
|
|
|
|
2021-10-07 19:47:47 +02:00
|
|
|
|
|
|
|
deploy:
|
|
|
|
- provider: pages
|
|
|
|
skip-cleanup: true
|
|
|
|
github-token: $GITHUB_TOKEN
|
|
|
|
local-dir: build/
|
|
|
|
keep-history: false
|
|
|
|
on:
|
|
|
|
branch: master
|
2021-10-07 21:47:54 +02:00
|
|
|
- provider: releases
|
|
|
|
api_key: $GITHUB_TOKEN
|
|
|
|
skip_cleanup: true
|
|
|
|
file: $TRAVIS_BUILD_DIR/build/LatexPackages.zip
|
|
|
|
on:
|
|
|
|
tags: true
|
2021-10-08 07:32:21 +02:00
|
|
|
- provider: pages
|
2021-10-08 08:44:08 +02:00
|
|
|
edge: true
|
2021-10-08 07:32:21 +02:00
|
|
|
github-token: $GITHUB_TOKEN
|
|
|
|
local-dir: build/LatexPackages
|
|
|
|
repo: kesslermaximilian/LatexPackagesBuild
|
|
|
|
commiter_from_gh: true
|
|
|
|
allow_empty_commit: true
|
2021-10-08 07:54:34 +02:00
|
|
|
target_branch: $TRAVIS_BRANCH
|
2021-10-08 08:33:13 +02:00
|
|
|
commit_message: "%{git_commit_msg}\n\nBuilt commit %{git_sha} from %{repo}:%{git_branch}"
|
2021-10-08 07:32:21 +02:00
|
|
|
on:
|
|
|
|
branches:
|
|
|
|
only:
|
|
|
|
- /.*/
|
2021-10-08 07:54:34 +02:00
|
|
|
condition: $TRAVIS_PULL_REQUEST = false
|