Repository: jfcabana/omg_dosimetry (language: python)

Issue:
Error on the Publish Python distribution to PyPI and TestPyPI Action
The "Sign the Python Distribution" job is returning the following error: 
![image](https://github.com/jfcabana/omg_dosimetry/assets/136498453/3dc65683-55c7-4f2e-b499-f0567f0fa0e5)



Discussion / hints:
Additionnally, I can see that the current release on Github is 1.5.1

I thought the Action would automatically create a release on github along with publication on pypi, but that does not seem to be the case.
![Screenshot from 2023-12-27 12-37-59](https://github.com/jfcabana/omg_dosimetry/assets/41806420/8bfe5c63-ac8f-415a-922d-864d5838b5e0)

It worked :muscle:
Yes! Good job!
![guthub release error](https://github.com/jfcabana/omg_dosimetry/assets/41806420/aaddf3b8-dd50-495b-8cf0-4f63636fb53f)

The workflow is creating a new release. The name of the release is copied from the name of the branch or **tag** that triggered the workflow.

By my understanding, in order to avoid an error in future pull requests, we need to add a tag (on the branch you want to merge into OMG_master) if we want an automatic release on GitHub. I will try to add a line of code to skipt the GitHub-release job if the pull request does not have a tag.

Fix patch:
diff --git a/docs/source/conf.py b/docs/source/conf.py
index 25a3ff0..b9c16ba 100644
--- a/docs/source/conf.py
+++ b/docs/source/conf.py
@@ -13,7 +13,7 @@
 # The short X.Y version.
 version = "1.6"
 # The full version, including alpha/beta/rc tags.
-release = "1.6.2"
+release = "1.6.3"
 # -- General configuration ---------------------------------------------------
 # https://www.sphinx-doc.org/en/master/usage/configuration.html#general-configuration
 
diff --git a/pyproject.toml b/pyproject.toml
index 1a6409f..8e28a8f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
 [project]
 name = "omg_dosimetry"
 
-version = "1.6.2"
+version = "1.6.3"
 
 authors = [
   { name="JF Cabana", email="jean-francois.cabana.cisssca@ssss.gouv.qc.ca" },


Test patch:
diff --git a/.github/workflows/publish-to-test-pypi.yml b/.github/workflows/publish-to-test-pypi.yml
index 36e9d17..4723177 100644
--- a/.github/workflows/publish-to-test-pypi.yml
+++ b/.github/workflows/publish-to-test-pypi.yml
@@ -58,6 +58,7 @@ jobs:
     name: >-
       Sign the Python 🐍 distribution 📦 with Sigstore
       and upload them to GitHub Release
+    if: startsWith(github.ref, 'refs/tags/')  # A new release is created only if the pull request merge branch has a tag.
     needs:
     - publish-to-pypi
     runs-on: ubuntu-latest