From 1a3a916dfc1a97a4a2f0d5736be796714a50bfa9 Mon Sep 17 00:00:00 2001 From: Ernesto Rico Schmidt <ernesto@helsinki.at> Date: Tue, 23 Apr 2024 16:27:21 -0400 Subject: [PATCH] feat: add release target Closes #205 --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 905c1e85..6c3f86d0 100644 --- a/Makefile +++ b/Makefile @@ -12,6 +12,8 @@ ifndef DASHBOARD_CALLBACK_BASE_URL override DASHBOARD_CALLBACK_BASE_URL = "${AURA_PROTO}://${AURA_HOST}" endif +version := `poetry run tomlq -r .tool.poetry.version pyproject.toml` + create_oidc_client.dashboard: $(POETRY_RUN_MANAGE) create_oidc_client dashboard public --client-id ${DASHBOARD_OIDC_CLIENT_ID} --client-secret ${DASHBOARD_OIDC_CLIENT_SECRET} -r "id_token token" -u ${DASHBOARD_CALLBACK_BASE_URL}/oidc_callback.html -u ${DASHBOARD_CALLBACK_BASE_URL}/oidc_callback_silentRenew.html -p ${DASHBOARD_CALLBACK_BASE_URL} -p ${DASHBOARD_CALLBACK_BASE_URL}/ @@ -81,3 +83,9 @@ format: test: poetry run pytest --cov + + +release: + git tag ${version} + git push origin ${version} + @echo "Release '${version}' tagged and pushed successfully." -- GitLab