| 123456789101112131415161718192021222324252627282930313233343536373839 |
- #!/usr/bin/env bash
- set -e
- cd "$(dirname "$0")/.."
- # check does it need to publish
- if [[ -n $DO_NOT_PUBLISH_TAR ]]; then
- echo "Skipping publishing install wrapper"
- exit 0
- fi
- # check channel and tag
- eval "$(ci/channel-info.sh)"
- if [[ -n "$CI_TAG" ]]; then
- CHANNEL_OR_TAG=$CI_TAG
- else
- CHANNEL_OR_TAG=$CHANNEL
- fi
- if [[ -z $CHANNEL_OR_TAG ]]; then
- echo +++ Unable to determine channel or tag to publish into, exiting.
- exit 0
- fi
- # upload install script
- source ci/upload-ci-artifact.sh
- cat >release.anza.xyz-install <<EOF
- SOLANA_RELEASE=$CHANNEL_OR_TAG
- SOLANA_INSTALL_INIT_ARGS=$CHANNEL_OR_TAG
- SOLANA_DOWNLOAD_ROOT=https://release.anza.xyz
- EOF
- cat install/agave-install-init.sh >>release.anza.xyz-install
- echo --- GCS: "install"
- upload-gcs-artifact "/solana/release.anza.xyz-install" "gs://anza-release/$CHANNEL_OR_TAG/install"
- echo Published to:
- ci/format-url.sh https://release.anza.xyz/"$CHANNEL_OR_TAG"/install
|