pulumi/scripts/publish.sh

25 lines
541 B
Bash
Executable File

#!/bin/bash
# publish.sh builds and publishes a release.
set -o nounset -o errexit -o pipefail
PUBLISH=$GOPATH/src/github.com/pulumi/home/scripts/publish.sh
PUBLISH_GOARCH=("amd64")
PUBLISH_PROJECT="pulumi"
if [ ! -f $PUBLISH ]; then
>&2 echo "error: Missing publish script at $PUBLISH"
exit 1
fi
OS=$(go env GOOS)
for ARCH in "${PUBLISH_GOARCH[@]}"
do
export GOARCH=${ARCH}
RELEASE_INFO=($($(dirname $0)/make_release.sh))
${PUBLISH} ${RELEASE_INFO[0]} "${PUBLISH_PROJECT}/${OS}/${ARCH}" ${RELEASE_INFO[@]:1}
done