From 94c55e01d65e5738f8deabbade705d97e4e22f59 Mon Sep 17 00:00:00 2001 From: cgspine Date: Wed, 24 Feb 2021 21:31:45 +0800 Subject: [PATCH] deploy --- deploy.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100755 deploy.sh diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 00000000..21fd446d --- /dev/null +++ b/deploy.sh @@ -0,0 +1,35 @@ +#!/usr/bin/env bash + +#./deploy.sh qmui publishToMavenLocal +#./deploy.sh arch publishToMavenLocal +#./deploy.sh type publishToMavenLocal + +#./deploy.sh qmui publish +#./deploy.sh arch publish +#./deploy.sh type publish + +#./deploy.sh qmui bintrayUpload +#./deploy.sh arch bintrayUpload +#./deploy.sh type bintrayUpload + +if [[ "qmui" == "$1" ]] +then + buildCmd="./gradlew :qmui:clean :qmui:build qmui:$2" + $buildCmd +elif [[ "arch" == "$1" ]] +then + buildCmd="./gradlew :arch:clean :arch:build :arch:$2" + $buildCmd + buildCmd="./gradlew :arch-annotation:clean :arch-annotation:build :arch-annotation:$2" + $buildCmd + buildCmd="./gradlew :arch-compiler:clean :arch-compiler:build :arch-compiler:$2" + $buildCmd +elif [[ "type" == "$1" ]] +then + buildCmd="./gradlew :type:clean :type:build type:$2" + $buildCmd +elif [[ "lint" == "$1" ]] +then + buildCmd="./gradlew :lint:clean :lint:build type:$2" + $buildCmd +fi \ No newline at end of file