forked from platypush/platypush
Added notify-release step to Drone pipeline.
This commit is contained in:
parent
7a15c7c749
commit
ed192faab2
1 changed files with 23 additions and 0 deletions
23
.drone.yml
23
.drone.yml
|
@ -184,3 +184,26 @@ steps:
|
||||||
- apk add --update --no-cache py3-twine
|
- apk add --update --no-cache py3-twine
|
||||||
- python setup.py sdist bdist_wheel
|
- python setup.py sdist bdist_wheel
|
||||||
- twine upload dist/platypush-$(python setup.py --version).tar.gz
|
- 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)"
|
||||||
|
|
Loading…
Reference in a new issue