From 7a15c7c749f8b2d9127981d349bd6e42e1ca26a5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 10:49:44 +0200 Subject: [PATCH] Added update-pip-package step in Drone pipeline. --- .drone.yml | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0a841eb62..df7a0939d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,6 +3,11 @@ kind: pipeline type: docker name: default +volumes: + - name: docs + host: + path: /opt/docs/platypush + steps: - name: github-mirror image: alpine @@ -27,7 +32,7 @@ steps: - git pull github master - git push --all -v github -- name: rebuild-docs +- name: docs image: alpine volumes: - name: docs @@ -159,7 +164,23 @@ steps: git push origin master fi -volumes: - - name: docs - host: - path: /opt/docs/platypush +- name: update-pip-package + image: python:3.11-alpine + environment: + TWINE_USERNAME: + from_secret: pypi_user + TWINE_PASSWORD: + from_secret: pypi_pass + + when: + event: + - tag + + depends_on: + - tests + - docs + + commands: + - apk add --update --no-cache py3-twine + - python setup.py sdist bdist_wheel + - twine upload dist/platypush-$(python setup.py --version).tar.gz