Skip to content

Commit

Permalink
More build script updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jefferai committed Jan 24, 2019
1 parent 8ffe967 commit 4e336cc
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
13 changes: 13 additions & 0 deletions scripts/dist.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,17 @@ if [ -z $NOSIGN ]; then
fi
popd


# Upload
if [ ! -z $HC_RELEASE ]; then
hc-releases upload $DIR/pkg/dist
hc-releases publish

curl -X PURGE https://releases.hashicorp.com/serf/${VERSION}
for FILENAME in $(find $DIR/pkg/dist -type f); do
FILENAME=$(basename $FILENAME)
curl -X PURGE https://releases.hashicorp.com/serf/${VERSION}/${FILENAME}
done
fi

exit 0
1 change: 0 additions & 1 deletion scripts/dist_build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ cd $DIR
make -f GNUmakefile tools

# Now we are ready to do a clean build of everything.
rm -rf pkg
make -f GNUmakefile bin

exit 0

0 comments on commit 4e336cc

Please sign in to comment.