Skip to content

[#7073] improvement(build): Optimize the release script #7075

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
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
7 changes: 7 additions & 0 deletions dev/release/do-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ fi

. "$SELF/release-util.sh"

if ! is_dry_run; then
if [[ -z "$PYPI_API_TOKEN" ]]; then
echo 'The environment variable PYPI_API_TOKEN is not set. Exiting.'
exit 1
fi
fi

if [ "$RUNNING_IN_DOCKER" = "1" ]; then
# Inside docker, need to import the GPG key stored in the current directory.
echo $GPG_PASSPHRASE | $GPG --passphrase-fd 0 --import "$SELF/gpg.key"
Expand Down
4 changes: 4 additions & 0 deletions dev/release/release-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ fi
if [[ "$PYGRAVITINO_VERSION" == *"dev"* ]]; then
RC_PYGRAVITINO_VERSION="${PYGRAVITINO_VERSION}"
else
if [ -z "$RC_COUNT" ]; then
echo "ERROR: RC_COUNT must be set to run this script"
exit_with_usage
fi
RC_PYGRAVITINO_VERSION="${PYGRAVITINO_VERSION}rc${RC_COUNT}"
fi

Expand Down