project-config/playbooks/publish/pypi.yaml
Paul Belanger 856496533e
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.

Change-Id: If0afb88f5063fe11e664a0393528933911da667b
Signed-off-by: Paul Belanger <pabelanger@redhat.com>
2017-10-23 13:48:45 -04:00

8 lines
200 B
YAML

- hosts: localhost
roles:
- role: ensure-twine
when: zuul_success | bool
- role: upload-pypi
pypi_path: "{{ zuul.executor.work_root }}/artifacts"
when: zuul_success | bool