25 lines
843 B
Bash
Executable file
25 lines
843 B
Bash
Executable file
#!/bin/bash
|
|
# make_release.sh will create a build package ready for publishing.
|
|
set -e
|
|
|
|
ROOT=$(dirname $0)/..
|
|
PUBDIR=$(mktemp -du)
|
|
GITVER=$(git rev-parse HEAD)
|
|
PUBFILE=$(dirname ${PUBDIR})/${GITVER}.tgz
|
|
PUBPREFIX=s3://eng.pulumi.com/releases/pulumi-fabric
|
|
declare -a PUBTARGETS=(${GITVER} $(git describe --tags) $(git rev-parse --abbrev-ref HEAD))
|
|
|
|
# Copy the binaries and packs.
|
|
mkdir -p ${PUBDIR}/bin/
|
|
cp ${GOPATH}/bin/lumi ${PUBDIR}/bin/
|
|
mkdir -p ${PUBDIR}/sdk/
|
|
cp -R ${ROOT}/sdk/nodejs/bin/. ${PUBDIR}/sdk/nodejs/
|
|
cp -R ${ROOT}/sdk/nodejs/node_modules/. ${PUBDIR}/sdk/nodejs/node_modules/
|
|
cp ${ROOT}/sdk/nodejs/pulumi-langhost-nodejs ${PUBDIR}/sdk/nodejs/
|
|
echo sdk/nodejs/ >> ${PUBDIR}/packs.txt
|
|
|
|
# Tar up the file and then print it out for use by the caller or script.
|
|
tar -czf ${PUBFILE} -C ${PUBDIR} .
|
|
echo ${PUBFILE} ${PUBTARGETS[@]}
|
|
|