Skip to content

Commit f7eaeed

Browse files
authored
CD: add PyPI
1 parent 0cf259b commit f7eaeed

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.circleci/config.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ jobs:
2323
name: Login to Docker Hub
2424
command: echo "$DOCKERHUB_PASS" | docker login --username "$DOCKERHUB_USER" --password-stdin
2525
- run: docker push ocrd/segment
26+
deploy-pypi:
27+
docker:
28+
- image: ocrd/segment
29+
steps:
30+
- checkout
31+
- run: pip install twine build
32+
- run: python -m build .
33+
- run: twine upload dist/*
2634

2735
workflows:
2836
version: 2
@@ -35,3 +43,9 @@ workflows:
3543
filters:
3644
branches:
3745
only: master
46+
- deploy-pypi:
47+
requires:
48+
- deploy-docker
49+
filters:
50+
branches:
51+
only: master

0 commit comments

Comments
 (0)