Fix tarball publishing for tags
This commit is contained in:
parent
d9f9e347ab
commit
92a8b646df
|
@ -17,11 +17,6 @@ elif [[ $BUILDKITE_BRANCH = "$BETA_CHANNEL" ]]; then
|
||||||
CHANNEL=beta
|
CHANNEL=beta
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ -z $CHANNEL ]]; then
|
|
||||||
echo Unable to determine channel to publish into, exiting.
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -n "$BUILDKITE_TAG" ]]; then
|
if [[ -n "$BUILDKITE_TAG" ]]; then
|
||||||
CHANNEL_OR_TAG=$BUILDKITE_TAG
|
CHANNEL_OR_TAG=$BUILDKITE_TAG
|
||||||
elif [[ -n "$TRIGGERED_BUILDKITE_TAG" ]]; then
|
elif [[ -n "$TRIGGERED_BUILDKITE_TAG" ]]; then
|
||||||
|
@ -30,6 +25,12 @@ else
|
||||||
CHANNEL_OR_TAG=$CHANNEL
|
CHANNEL_OR_TAG=$CHANNEL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ -z $CHANNEL_OR_TAG ]]; then
|
||||||
|
echo Unable to determine channel to publish into, exiting.
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
echo --- Creating tarball
|
echo --- Creating tarball
|
||||||
if [[ -z $DRYRUN ]]; then
|
if [[ -z $DRYRUN ]]; then
|
||||||
(
|
(
|
||||||
|
@ -37,7 +38,7 @@ if [[ -z $DRYRUN ]]; then
|
||||||
rm -rf solana-release/
|
rm -rf solana-release/
|
||||||
mkdir solana-release/
|
mkdir solana-release/
|
||||||
(
|
(
|
||||||
echo "$CHANNEL"
|
echo "$CHANNEL_OR_TAG "
|
||||||
git rev-parse HEAD
|
git rev-parse HEAD
|
||||||
) > solana-release/version.txt
|
) > solana-release/version.txt
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue