Upload to pypi if pre / run was successful
If we failed to build a wheel / tarball, we don't actually want to
attempt an upload. Checking the zuul_status results will provide that
information.
- hosts: localhost
roles:
- - ensure-twine
+ - role: ensure-twine
+ when: zuul_success | bool
- role: upload-pypi
pypi_path: "{{ zuul.executor.work_root }}/artifacts"
+ when: zuul_success | bool
