Skip to content

Commit

Permalink
Fix location of -prerelease option
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 376790625
  • Loading branch information
fweikert authored and Copybara-Service committed Jun 1, 2021
1 parent f7049e5 commit 4ef9c56
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/ci/build.sh
Expand Up @@ -151,12 +151,10 @@ function release_to_github() {
local github_token="$(gsutil cat gs://bazel-trusted-encrypted-secrets/github-trusted-token.enc | \
gcloud kms decrypt --project bazel-public --location global --keyring buildkite --key github-trusted-token --ciphertext-file - --plaintext-file -)"

local cmd="GITHUB_TOKEN=\"${github_token}\" github-release \"bazelbuild/bazel\" \"${release_name}\" \"\" \"$(get_release_page)\" \"${artifact_dir}/*\""

if [ "$(is_rolling_release)" -eq 1 ]; then
eval "${cmd} -prerelease"
GITHUB_TOKEN="${github_token}" github-release -prerelease "bazelbuild/bazel" "${release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
else
eval "${cmd}"
GITHUB_TOKEN="${github_token}" github-release "bazelbuild/bazel" "${release_name}" "" "$(get_release_page)" "${artifact_dir}/*"
fi
fi
}
Expand Down

0 comments on commit 4ef9c56

Please sign in to comment.