From d1d6a8b2a49e7d94e83723acc4b3c642e958dd97 Mon Sep 17 00:00:00 2001 From: Akseli Lukkarila Date: Fri, 1 Sep 2023 15:13:19 +0300 Subject: [PATCH] print dryrun commands in yellow for added visibility --- common.sh | 2 +- python/release.sh | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/common.sh b/common.sh index 2519fa3a..ad46fc2a 100644 --- a/common.sh +++ b/common.sh @@ -75,7 +75,7 @@ check_and_set_python() { # if DRYRUN or DRY_RUN has been set, only print commands instead of running them run_command() { if [ "$DRY_RUN" = true ] || [ "$DRYRUN" = true ]; then - echo "DRYRUN: $*" + print_yellow "DRYRUN: $*" else echo "Running: $*" "$@" diff --git a/python/release.sh b/python/release.sh index c11c2aa1..02a64e3f 100755 --- a/python/release.sh +++ b/python/release.sh @@ -92,8 +92,9 @@ git commit -m "$MESSAGE" n_vault/__init__.py setup.cfg git tag "$NEW_VERSION" -m "$MESSAGE" run_command git push origin "$NEW_VERSION" -print_magenta "Uploading package..." +print_magenta "Building package..." check_and_set_python rm -rf dist $PYTHON setup.py sdist bdist_wheel +print_magenta "Uploading package..." run_command twine upload dist/*