Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Commit

Permalink
[ios] oops (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmkiley authored Oct 23, 2019
1 parent 8bdbb39 commit 5f21a7d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions platform/ios/scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ if [ -n "${CI:-}" ]; then
PROGRESS="--no-progress"
fi



step "Uploading ${ZIP_FILENAME} to s3…"
aws s3 cp ${ZIP_FILENAME} s3://mapbox/${GITHUB_REPO}/ios/builds/ --acl public-read ${PROGRESS}
S3_URL=https://mapbox.s3.amazonaws.com/${GITHUB_REPO}/ios/builds/${ZIP_FILENAME}
aws s3 cp ${ZIP_FILENAME} s3://mapbox/mapbox-gl-native/ios/builds/ --acl public-read ${PROGRESS}
S3_URL=https://mapbox.s3.amazonaws.com/mapbox-gl-native/ios/builds/${ZIP_FILENAME}
echo "URL: ${S3_URL}"
echo "mapbox-gl-native is currently hardcoded"

#
# upload & update snapshot
Expand All @@ -58,8 +61,8 @@ if [[ ${PUBLISH_VERSION} =~ "snapshot" ]]; then
step "Updating ${PUBLISH_VERSION} to ${PUBLISH_STYLE}"
GENERIC_ZIP_FILENAME="mapbox-ios-sdk-${PUBLISH_VERSION}.zip"
aws s3 cp \
s3://mapbox/$GITHUB_REPO/ios/builds/${ZIP_FILENAME} \
s3://mapbox/$GITHUB_REPO/ios/builds/${GENERIC_ZIP_FILENAME} --acl public-read ${PROGRESS}
s3://mapbox/mapbox-gl-native/ios/builds/${ZIP_FILENAME} \
s3://mapbox/mapbox-gl-native/ios/builds/${GENERIC_ZIP_FILENAME} --acl public-read ${PROGRESS}
fi

#
Expand Down

0 comments on commit 5f21a7d

Please sign in to comment.