]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:rocket: Make Flit publish from CI (#170)
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 20 Apr 2019 18:09:35 +0000 (22:09 +0400)
committerGitHub <noreply@github.com>
Sat, 20 Apr 2019 18:09:35 +0000 (22:09 +0400)
.travis.yml
scripts/deploy.sh [new file with mode: 0755]
scripts/publish.sh [new file with mode: 0755]

index c37021e9368d82c272001a775299797568004229..1b5e0d2701e2e44c2ac7a532dccff5f964b23cec 100644 (file)
@@ -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 (executable)
index 0000000..6ad5606
--- /dev/null
@@ -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 (executable)
index 0000000..122728a
--- /dev/null
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -e
+
+flit publish