From 4c02d1762be98b5d963bb53202dceac1e1b602c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 5 Jan 2020 16:48:49 +0100 Subject: [PATCH] travis: Add deployment configuration. --- .travis.yml | 8 ++++++++ ci/deploy.sh | 11 +++++++++++ 2 files changed, 19 insertions(+) create mode 100644 ci/deploy.sh 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"