mirror of
https://github.com/checktheroads/hyperglass
synced 2024-05-11 05:55:08 +00:00
fix auto PyPI deployment
This commit is contained in:
27
.travis.yml
27
.travis.yml
@@ -25,19 +25,14 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
- HYPERGLASS_UI_BUILD_TIMEOUT=600
|
- HYPERGLASS_UI_BUILD_TIMEOUT=600
|
||||||
script: docker run hyperglass/ubuntu /tmp/setup.sh
|
script: docker run hyperglass/ubuntu /tmp/setup.sh
|
||||||
|
# Poetry & PyPI Deployment stolen from: https://github.com/python-poetry/poetry/issues/366
|
||||||
# Poetry & PyPI Deployment stolen from: https://github.com/python-poetry/poetry/issues/366
|
- stage: Publish
|
||||||
before_deploy:
|
script: skip
|
||||||
- pip install poetry
|
before_deploy:
|
||||||
- poetry config pypi-token.pypi $PYPI_TOKEN
|
- pip install poetry
|
||||||
- poetry build
|
- poetry config pypi-token.pypi $PYPI_TOKEN
|
||||||
|
- poetry build
|
||||||
deploy:
|
deploy:
|
||||||
provider: script
|
provider: script
|
||||||
script: poetry publish
|
script: poetry publish
|
||||||
skip_cleanup: true
|
skip_cleanup: true
|
||||||
on:
|
|
||||||
all_branches: true
|
|
||||||
condition: $TRAVIS_BUILD_STAGE_NAME = Deploy
|
|
||||||
repo: checktheroads/hyperglass
|
|
||||||
tags: true
|
|
||||||
|
Reference in New Issue
Block a user