25 lines
430 B
YAML
25 lines
430 B
YAML
---
|
|
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: python
|
|
commands:
|
|
- python -m pip install twine
|
|
- python -m twine upload -u $USERNAME -p $PASSWORD dist/*
|
|
environment:
|
|
USERNAME:
|
|
from_secret: pypi_username
|
|
PASSWORD:
|
|
from_secret: pypi_password
|
|
trigger:
|
|
event:
|
|
- tag
|