From e242439de8d3f81ea293eacae1b5153626a0c7b5 Mon Sep 17 00:00:00 2001 From: "Huska, Matthew" Date: Fri, 15 Nov 2024 15:01:47 +0100 Subject: [PATCH] Updating git tagging instructions in CONTRIBUTING.md --- CONTRIBUTING.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 3f0ae67..e957145 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -84,8 +84,9 @@ git push Then tag the commit with the same version number (note the "v" prefix), push the code and push the tag: ```sh -git tag v0.3.1 -git push origin v0.3.1 +NEW_VERSION=v$(poetry version -s) +git tag "$NEW_VERSION" +git push origin "$NEW_VERSION" ``` Now go to github.com and do a release, selecting the version number tag you just pushed. This will automatically trigger the new version being tested and pushed to PyPI if the tests pass.