--- 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: username: from_secret: pypi_username password: from_secret: pypi_password trigger: branch: - main event: - tag