From 5cf265f09cc3fa36d47115a1dc9fecb9fdc7263e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Kucharczyk?= Date: Tue, 1 Mar 2022 12:40:06 +0100 Subject: [PATCH] Add CI --- .drone.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..eb7cbf1 --- /dev/null +++ b/.drone.yml @@ -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