From ed192faab217d0b4c5187600f2c5c2208cf7529c Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 6 Aug 2023 11:08:01 +0200 Subject: [PATCH] Added notify-release step to Drone pipeline. --- .drone.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.drone.yml b/.drone.yml index df7a0939dc..52236d028f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -184,3 +184,26 @@ steps: - apk add --update --no-cache py3-twine - python setup.py sdist bdist_wheel - twine upload dist/platypush-$(python setup.py --version).tar.gz + +- name: notify-release + image: python:3.11-alpine + environment: + WORKER_RPC_SECRET: + from_secret: worker_rpc_secret + + when: + event: + - tag + + depends_on: + - tests + - docs + - update-pip-package + - update-arch-packages + + commands: + - apk add --update --no-cache curl + - | + curl --silent -XPOST \ + -H "X-Token: $WORKER_RPC_SECRET" \ + "https://worker.ci-cd.platypush.tech/hook/notify-platypush-release?version=$(python setup.py --version)"