@@ -44,16 +44,6 @@ if [ -z "$GITHUB_TAG_1" ]; then
44
44
exit 1
45
45
fi
46
46
47
- if [ -z " $GITHUB_TAG_2 " ]; then
48
- echo " [ERROR] 'GITHUB_TAG_2' is not specified!"
49
- exit 1
50
- fi
51
-
52
- if [ -z " $GITHUB_TAG_3 " ]; then
53
- echo " [ERROR] 'GITHUB_TAG_3 ' is not specified!"
54
- exit 1
55
- fi
56
-
57
47
mkdir -p ~ /.ivy2
58
48
59
49
STR=$' realm=Sonatype Nexus Repository Manager
97
87
aws s3 cp ~ /.ivy2/local ${PUBLISH_S3_URL} /${GITHUB_TAG_1} / --recursive
98
88
fi
99
89
100
- echo publishing previous_spark_version branch...
101
- git checkout tags/$GITHUB_TAG_2
102
- if [ " $PUBLISH " = true ]; then
103
- sbt +publishSigned
104
- else
105
- echo " publish to $PUBLISH_S3_URL "
106
- rm -rf ~ /.ivy2/local/
107
- sbt +publishLocalSigned
108
- aws s3 cp ~ /.ivy2/local ${PUBLISH_S3_URL} /${GITHUB_TAG_2} / --recursive
90
+ if [ -n " $GITHUB_TAG_2 " ]; then
91
+ echo publishing previous_spark_version branch...
92
+ git checkout tags/$GITHUB_TAG_2
93
+ if [ " $PUBLISH " = true ]; then
94
+ sbt +publishSigned
95
+ else
96
+ echo " publish to $PUBLISH_S3_URL "
97
+ rm -rf ~ /.ivy2/local/
98
+ sbt +publishLocalSigned
99
+ aws s3 cp ~ /.ivy2/local ${PUBLISH_S3_URL} /${GITHUB_TAG_2} / --recursive
100
+ fi
109
101
fi
110
102
111
- echo publishing previous_spark_version branch...
112
- git checkout tags/$GITHUB_TAG_3
113
- if [ " $PUBLISH " = true ]; then
114
- sbt +publishSigned
115
- else
116
- echo " publish to $PUBLISH_S3_URL "
117
- rm -rf ~ /.ivy2/local/
118
- sbt +publishLocalSigned
119
- aws s3 cp ~ /.ivy2/local ${PUBLISH_S3_URL} /${GITHUB_TAG_3} / --recursive
103
+ if [ -n " $GITHUB_TAG_3 " ]; then
104
+ echo publishing previous_spark_version branch...
105
+ git checkout tags/$GITHUB_TAG_3
106
+ if [ " $PUBLISH " = true ]; then
107
+ sbt +publishSigned
108
+ else
109
+ echo " publish to $PUBLISH_S3_URL "
110
+ rm -rf ~ /.ivy2/local/
111
+ sbt +publishLocalSigned
112
+ aws s3 cp ~ /.ivy2/local ${PUBLISH_S3_URL} /${GITHUB_TAG_3} / --recursive
113
+ fi
120
114
fi
0 commit comments