diff --git a/.travis.yml b/.travis.yml index 47646a7..1a2d329 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/ci/deploy.sh b/ci/deploy.sh new file mode 100644 index 0000000..ec3b063 --- /dev/null +++ b/ci/deploy.sh @@ -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"