Skip to content

Commit ddec916

Browse files
committed
Delete old docs to remove straggling files
1 parent 88d23ac commit ddec916

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

.circleci/config.yml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ jobs:
141141
command: |
142142
sudo pip install awscli
143143
- run:
144-
name: download third party libararies
144+
name: download third party libraries
145145
command: |
146146
aws s3 cp s3://android-circleci-payload/third-party/third-party.zip third-party.zip
147147
unzip third-party.zip
@@ -161,7 +161,9 @@ jobs:
161161
- run:
162162
name: copy new document
163163
command: |
164-
cp -R build/javadoc/* docs/reference/
164+
rm -rf docs/reference
165+
mkdir -p docs/reference
166+
cp -R build/javadoc/* docs/reference/
165167
- run:
166168
name: check in documents
167169
command: |
@@ -247,9 +249,7 @@ jobs:
247249
name: publish to maven
248250
command: |
249251
echo "${HOME}"
250-
echo "$JAVA_HOME"
251252
echo "$ANDROID_HOME"
252-
echo "$M2_HOME"
253253
bash CircleciScripts/maven_release.sh
254254
mkdir m2
255255
cp -r ${HOME}/.m2/com/amazonaws/* m2
@@ -310,25 +310,21 @@ jobs:
310310
- run:
311311
name: check current release release_type
312312
command: |
313-
314-
if [ "$release_type" == "release" ]
313+
if [ "$release_type" != "release" ]
315314
then
316-
echo ""
317-
else
318-
echo "skip upload to s3"
315+
echo "skip upload to s3 because this is not a release"
319316
circleci step halt
320317
fi
321318
- run:
322319
name: upload to s3
323320
command: |
324-
aws s3 cp "$sdkNameWithVersion.zip" "s3://$release_bucket/$sdkNameWithVersion.zip" --profile android_sdk_release
325-
aws s3 cp "$sdkNameWithVersion.zip" "s3://$release_bucket/latest/$sdkName.zip" --profile android_sdk_release
321+
aws s3 cp "$sdkNameWithVersion.zip" "s3://$release_bucket/$sdkNameWithVersion.zip" --profile android_sdk_release
322+
aws s3 cp "$sdkNameWithVersion.zip" "s3://$release_bucket/latest/$sdkName.zip" --profile android_sdk_release
326323
- run:
327324
name: invalidate cloudfront
328325
command: |
329326
python3 CircleciScripts/cloudfront_invalidate.py android_sdk_release "${android_distribution_id}" "$sdkName.zip"
330327
331-
332328
workflows:
333329
version: 2
334330

0 commit comments

Comments
 (0)