forked from platypush/platypush
Added update-pip-package step in Drone pipeline.
This commit is contained in:
parent
063697c824
commit
7a15c7c749
1 changed files with 26 additions and 5 deletions
31
.drone.yml
31
.drone.yml
|
@ -3,6 +3,11 @@ kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: default
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: docs
|
||||||
|
host:
|
||||||
|
path: /opt/docs/platypush
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: github-mirror
|
- name: github-mirror
|
||||||
image: alpine
|
image: alpine
|
||||||
|
@ -27,7 +32,7 @@ steps:
|
||||||
- git pull github master
|
- git pull github master
|
||||||
- git push --all -v github
|
- git push --all -v github
|
||||||
|
|
||||||
- name: rebuild-docs
|
- name: docs
|
||||||
image: alpine
|
image: alpine
|
||||||
volumes:
|
volumes:
|
||||||
- name: docs
|
- name: docs
|
||||||
|
@ -159,7 +164,23 @@ steps:
|
||||||
git push origin master
|
git push origin master
|
||||||
fi
|
fi
|
||||||
|
|
||||||
volumes:
|
- name: update-pip-package
|
||||||
- name: docs
|
image: python:3.11-alpine
|
||||||
host:
|
environment:
|
||||||
path: /opt/docs/platypush
|
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
|
||||||
|
|
Loading…
Reference in a new issue