1#!/bin/sh 2 3set -ex 4 5cd `dirname $0`/../.. 6 7git submodule update --init 8 9export GIT_TAG=$(git describe --tags) 10 11mvn -B package -DskipTests -P mac-x64 -Dcrt.classifier=osx-x86_64 12 13# Copy artifacts to dist 14mkdir -p ../dist 15cp -rv target/cmake-build/lib ../dist/ 16 17aws s3 cp --recursive --exclude "*" --include "*.dylib" ./target/cmake-build/lib s3://aws-crt-java-pipeline/${GIT_TAG}/lib 18aws s3 cp --recursive --exclude "*" --include "aws-crt*.jar" ./target s3://aws-crt-java-pipeline/${GIT_TAG}/jar 19