23 lines
457 B
YAML
23 lines
457 B
YAML
|
---
|
||
|
kind: pipeline
|
||
|
type: docker
|
||
|
name: build and publish
|
||
|
|
||
|
steps:
|
||
|
- name: build
|
||
|
image: registry.kucharczyk.tech/python-pypi
|
||
|
commands:
|
||
|
- python -m build
|
||
|
- name: publish
|
||
|
image: registry.kucharczyk.tech/python-pypi
|
||
|
commands:
|
||
|
- python -m twine upload -u $USERNAME -p $PASSWORD dist/*
|
||
|
environment:
|
||
|
USERNAME:
|
||
|
from_secret: pypi_username
|
||
|
PASSWORD:
|
||
|
from_secret: pypi_password
|
||
|
trigger:
|
||
|
event:
|
||
|
- tag
|