--- kind: pipeline type: docker name: build and publish steps: - name: build image: python commands: - python -m pip install build - python -m build - name: publish image: plugins/pypi settings: setupfile: setup.cfg username: from_secret: pypi_username password: from_secret: pypi_password trigger: event: - tag