From 406a1485dad41df83294f886c7153592c2b7da90 Mon Sep 17 00:00:00 2001 From: Deepak Mallubhotla Date: Wed, 1 May 2024 15:49:01 -0500 Subject: [PATCH] build: justfile allows version --- justfile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/justfile b/justfile index 7b7e6ea..2bcd772 100644 --- a/justfile +++ b/justfile @@ -46,9 +46,15 @@ fmt: find deepdog -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \; find tests -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \; -# release the app, checking that our working tree is clean and ready for release -release: - ./scripts/release.sh +# release the app, checking that our working tree is clean and ready for release, optionally takes target version +release version="": + #!/usr/bin/env bash + set -euxo pipefail + if [[ -n "{{version}}" ]]; then + ./scripts/release.sh {{version}} + else + ./scripts/release.sh + fi htmlcov: poetry run pytest --cov-report=html