travis: Add deployment configuration.

master
Damir Jelić 2020-01-05 16:48:49 +01:00
parent 4e2b72cd1d
commit 4c02d1762b
2 changed files with 19 additions and 0 deletions

View File

@ -56,3 +56,11 @@ jobs:
script:
- pipenv run py.test -rws -v tests/
deploy:
provider: script
script: "ci/deploy.sh"
on:
tags: true
repo: tantivy-search/tantivy-py
python: 3.8

11
ci/deploy.sh Normal file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
docker run \
--env MATURIN_PASSWORD="$MATURIN_PASSWORD" \
--rm \
-v "$(pwd)":/io \
konstin2/maturin \
publish \
--interpreter python3.7 python3.8 \
--username __token__ \
--password "$MATURIN_PASSWORD"