2022-03-01 11:40:06 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: build and publish
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: build
|
2022-04-07 11:05:50 +00:00
|
|
|
image: registry.kucharczyk.xyz/python-pypi
|
2022-03-01 11:40:06 +00:00
|
|
|
commands:
|
|
|
|
- python -m build
|
|
|
|
- name: publish
|
2022-04-07 11:05:50 +00:00
|
|
|
image: registry.kucharczyk.xyz/python-pypi
|
2022-03-01 11:40:06 +00:00
|
|
|
commands:
|
|
|
|
- python -m twine upload -u $USERNAME -p $PASSWORD dist/*
|
|
|
|
environment:
|
|
|
|
USERNAME:
|
|
|
|
from_secret: pypi_username
|
|
|
|
PASSWORD:
|
|
|
|
from_secret: pypi_password
|
|
|
|
trigger:
|
|
|
|
event:
|
|
|
|
- tag
|