add automatic releases on tags

This commit is contained in:
Maximilian Keßler 2021-10-07 21:47:54 +02:00
parent 34f54e9c25
commit a2af0344b5

View file

@ -6,7 +6,6 @@ cache: apt
addons: addons:
apt: apt:
packages: packages:
- wget
- tree - tree
- latexmk - latexmk
- biber - biber
@ -16,8 +15,9 @@ install:
- pip install GitPython - pip install GitPython
script: script:
- make build - python3 -c 'from build import build; build("build/LatexPackages/")'
- cd build - cd build
- zip -r LatexPackages.zip LatexPackages
- tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html - tree -H '.' -I "index.html" -D --charset utf-8 -T "LatexPackages" > index.html
deploy: deploy:
@ -28,3 +28,9 @@ deploy:
keep-history: false keep-history: false
on: on:
branch: master branch: master
- provider: releases
api_key: $GITHUB_TOKEN
skip_cleanup: true
file: $TRAVIS_BUILD_DIR/build/LatexPackages.zip
on:
tags: true