Add CI
This commit is contained in:
parent
91743d1c6d
commit
b5830c3aa9
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
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
|
Loading…
Reference in New Issue