Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aztec-up/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ function release {
# Read the current version from S3.
local current_version=$(aws s3 cp s3://install.aztec.network/VERSION - 2>/dev/null || echo "0.0.0")

if [ $(dist_tag) != latest ]; then
# Temporary: while alpha-testnet is the main release, include it (later it should only push to $version)
if [[ $(dist_tag) != "latest" && $(dist_tag) != "alpha-testnet" ]]; then
echo_stderr -e "${yellow}Not uploading aztec-up scripts for dist-tag $(dist_tag). They are expected to still be compatible with latest."
return
fi

# Check if new version is greater than current version.
if [ $(semver sort "$version" "$current_version" | tail -1) == "$version" ]; then
echo "Uploading new version: $version"

Expand All @@ -59,7 +59,7 @@ function release {
fi

# Always create a version directory and upload files there.
do_or_dryrun aws s3 sync ./bin s3://install.aztec.network/$version/
do_or_dryrun aws s3 sync ./bin "s3://install.aztec.network/$version/"
}

case "$cmd" in
Expand Down
Loading