From f42d03cac534d8cba7e3eba6885a62d1ae9735c4 Mon Sep 17 00:00:00 2001 From: "d.zakharchuk" Date: Fri, 19 Jan 2024 15:03:25 +0200 Subject: [PATCH] add lets command for release --- README.md | 3 +-- lets.yaml | 15 +++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f7bd1dc..b6a4115 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ To install package: To release package: -- ``VERSION= MESSAGE= pdm run release"`` +- ``lets release 0.4.0 --message="Added feature"`` Development ----------- @@ -38,4 +38,3 @@ TODO: - add tests - add `tracer` / `stats_collector` for http manager - rm old grpc client -- add publish workflow diff --git a/lets.yaml b/lets.yaml index 464a75d..db38538 100644 --- a/lets.yaml +++ b/lets.yaml @@ -94,3 +94,18 @@ commands: cmd: | docker-compose run -T --rm featureflags-client \ pdm run fmt + + release: + description: | + Update version in featureflags_client/__init__.py + Create new annotated tag + Push changes to remote + options: | + Usage: lets release --message= + Options: + Set version + --message=, -m Release message + Example: + lets release 0.4.0 --message="Added feature" + cmd: | + VERSION=${LETSOPT_VERSION} MESSAGE=${LETSOPT_MESSAGE} pdm run release