-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrelease.sh
More file actions
executable file
·18 lines (15 loc) · 945 Bytes
/
release.sh
File metadata and controls
executable file
·18 lines (15 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/env bash
set -ex
brew install awscli
LATEST_C4_VERSION=./Control4/Release/LinnDS_Control4_v157.zip
LATEST_CRESTRON_REFERENCE_VERSION=./Crestron/Release/Linn_DS_Crestron_V4_1_69.zip
LATEST_C4_MANUAL=./Control4/Release/linn_mediaservice_driver_operation_latest.pdf
if [[ $BITRISE_GIT_BRANCH == "master" ]]; then
if [[ -z $BITRISE_PULL_REQUEST ]]; then
aws s3 cp --recursive ./Control4/ s3://$AWS_BUCKET_NAME/applications/custominstall/control4/
aws s3 cp --recursive ./Crestron/ s3://$AWS_BUCKET_NAME/applications/custominstall/crestron/
aws s3 cp $LATEST_C4_VERSION s3://$AWS_BUCKET_NAME/applications/custominstall/control4/control4_latest.zip
aws s3 cp $LATEST_CRESTRON_REFERENCE_VERSION s3://$AWS_BUCKET_NAME/applications/custominstall/crestron/crestron_reference_latest.zip
aws s3 cp $LATEST_C4_MANUAL s3://$AWS_BUCKET_NAME/applications/custominstall/control4/linn_mediaservice_driver_operation_latest.pdf
fi
fi