project-config/playbooks/publish/pypi.yaml
Jeremy Stanley 1ea6374489 Skip existing remote artifacts during PyPI upload
In order to be able to safely re-enqueue tags which previously
failed release jobs after successfully uploading at least some
artifacts to PyPI, instruct twine to treat "file already exists"
responses as benign and ignore them, proceeding to upload any others
which aren't yet there.

Depends-On: https://review.opendev.org/864004
Change-Id: Iab38df6386ce5219a52787fda5e64a8faab23a06
2022-11-08 15:41:47 +00:00

9 lines
237 B
YAML

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