[travis] also deploy to Github Releases on tags
This commit is contained in:
parent
10c7f5e87c
commit
728774587d
30
.travis.yml
30
.travis.yml
@ -44,17 +44,39 @@ install:
|
|||||||
script:
|
script:
|
||||||
- ./.travis/run.sh
|
- ./.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:
|
notifications:
|
||||||
irc: "irc.freenode.org##fonts"
|
irc: "irc.freenode.org##fonts"
|
||||||
email: fonttools@googlegroups.com
|
email: fonttools@googlegroups.com
|
||||||
|
|
||||||
deploy:
|
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
|
user: anthrotype
|
||||||
password:
|
password:
|
||||||
secure: H/07cptieQgeQYEpAgXtIIZtKsVA6DJ+NeTaVlGi0ut/rCG8Mx9U1daZT1g7jjSVq/ldoNP6QXqelQAFHTDCfyvD3oB6zltHYqs+kRYMtkwfHgoHFK7c5kSdAIPML8eB29W+rp+xcJ2ciFTDoth/Wxps/SjVDe+OgJVnsO2Osgs=
|
secure: Dz3x8kh4ergBV6qZUgcGVDOEzjoCEFzzQiO5WVw4Zfi04DD8+d1ghmMz2BY4UvoVKSsFrfKDuEB3MCWyqewJsf/zoZQczk/vnWVFjERROieyO1Ckzpz/WkCvbjtniIE0lxzB7zorSV+kGI9VigGAaRlXJyU7mCFojeAFqD6cjS4=
|
||||||
distributions: "sdist bdist_wheel"
|
distributions: "sdist bdist_wheel"
|
||||||
on:
|
on:
|
||||||
tags: true
|
tags: true
|
||||||
repo: behdad/fonttools
|
repo: fonttools/fonttools
|
||||||
condition: $TOXENV = py35
|
all_branches: true
|
||||||
|
condition: "$BUILD_DIST == true"
|
||||||
|
10
.travis/after_success.sh
Executable file
10
.travis/after_success.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user