[travis] also deploy to Github Releases on tags

This commit is contained in:
Cosimo Lupo 2016-09-27 15:05:47 +01:00
parent 10c7f5e87c
commit 728774587d
2 changed files with 41 additions and 9 deletions

View File

@ -44,17 +44,39 @@ install:
script:
- ./.travis/run.sh
after_success:
- ./.travis/after_success.sh
before_deploy:
- if [[ $BUILD_DIST == true ]]; then export ZIP=$(ls dist/fonttools*.zip); export WHL=$(ls dist/fonttools*.whl); fi
notifications:
irc: "irc.freenode.org##fonts"
email: fonttools@googlegroups.com
deploy:
provider: pypi
# deploy to Github Releases on tags
- provider: releases
api_key:
secure: KEcWhJxMcnKay7wmWJCpg2W5GWHTQ+LaRbqGM11IKGcQuEOFxWuG7W1xjGpVdKPj/MQ+cG0b9hGUFpls1hwseOA1HANMv4xjCgYkuvT1OdpX/KOcZ7gfe/qaovzVxHyP9xwohnHSJMb790t37fmDfFUSROx3iEexIX09LLoDjO8=
file:
- "${ZIP}"
- "${WHL}"
skip_cleanup: true
on:
tags: true
repo: fonttools/fonttools
all_branches: true
condition: "$BUILD_DIST == true"
# deploy to PyPI on tags
- provider: pypi
server: https://upload.pypi.org/legacy/
user: anthrotype
password:
secure: H/07cptieQgeQYEpAgXtIIZtKsVA6DJ+NeTaVlGi0ut/rCG8Mx9U1daZT1g7jjSVq/ldoNP6QXqelQAFHTDCfyvD3oB6zltHYqs+kRYMtkwfHgoHFK7c5kSdAIPML8eB29W+rp+xcJ2ciFTDoth/Wxps/SjVDe+OgJVnsO2Osgs=
secure: Dz3x8kh4ergBV6qZUgcGVDOEzjoCEFzzQiO5WVw4Zfi04DD8+d1ghmMz2BY4UvoVKSsFrfKDuEB3MCWyqewJsf/zoZQczk/vnWVFjERROieyO1Ckzpz/WkCvbjtniIE0lxzB7zorSV+kGI9VigGAaRlXJyU7mCFojeAFqD6cjS4=
distributions: "sdist bdist_wheel"
on:
tags: true
repo: behdad/fonttools
condition: $TOXENV = py35
repo: fonttools/fonttools
all_branches: true
condition: "$BUILD_DIST == true"

10
.travis/after_success.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -e
set -x
source ~/.venv/bin/activate
if [[ $BUILD_DIST == true ]]; then
python setup.py sdist bdist_wheel
fi