From ffc4c716c0654f697a348b0b5683f3658e343150 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Sat, 20 Apr 2019 22:09:35 +0400 Subject: [PATCH] :rocket: Make Flit publish from CI (#170) --- .travis.yml | 4 ++-- scripts/deploy.sh | 7 +++++++ scripts/publish.sh | 5 +++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100755 scripts/deploy.sh create mode 100755 scripts/publish.sh diff --git a/.travis.yml b/.travis.yml index c37021e93..1b5e0d270 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,6 +20,6 @@ after_script: deploy: provider: script - script: bash scripts/trigger-docker.sh + script: bash scripts/deploy.sh on: - branch: master + tags: true diff --git a/scripts/deploy.sh b/scripts/deploy.sh new file mode 100755 index 000000000..6ad5606f6 --- /dev/null +++ b/scripts/deploy.sh @@ -0,0 +1,7 @@ +#!/usr/bin/env bash + +set -e + +bash scripts/publish.sh + +bash scripts/trigger-docker.sh diff --git a/scripts/publish.sh b/scripts/publish.sh new file mode 100755 index 000000000..122728a60 --- /dev/null +++ b/scripts/publish.sh @@ -0,0 +1,5 @@ +#!/usr/bin/env bash + +set -e + +flit publish