diff --git a/.github/workflows/publish-to-pypi.yml b/.github/workflows/publish-to-pypi.yml index 15db348..d2a033e 100644 --- a/.github/workflows/publish-to-pypi.yml +++ b/.github/workflows/publish-to-pypi.yml @@ -4,6 +4,17 @@ on: push: tags: - v* + workflow_dispatch: + inputs: + tag: + description: 'Tag to create release for (e.g., v1.2.3)' + required: true + type: string + skip_pypi: + description: 'Skip PyPI publication (for manual runs)' + required: false + type: boolean + default: false jobs: build: @@ -33,7 +44,7 @@ jobs: publish-to-pypi: name: >- publish-to-pypi 📢 - if: ${{startsWith(github.ref, 'refs/tags/') && !contains(github.ref, '.dev')}} # only publish to PyPI on tag pushes + if: ${{ (startsWith(github.ref, 'refs/tags/') && !contains(github.ref, 'dev')) || (github.event_name == 'workflow_dispatch' && !inputs.skip_pypi) }} needs: - build runs-on: ubuntu-latest @@ -70,7 +81,7 @@ jobs: name: python-package-distributions path: dist/ - name: sign-with-sigstore - uses: sigstore/gh-action-sigstore-python@v2.1.1 + uses: sigstore/gh-action-sigstore-python@v3.0.1 with: inputs: >- ./dist/*.tar.gz @@ -117,4 +128,4 @@ jobs: - name: publish-dist-to-testpypi uses: pypa/gh-action-pypi-publish@release/v1 with: - repository-url: https://test.pypi.org/legacy/ \ No newline at end of file + repository-url: https://test.pypi.org/legacy/ diff --git a/pyproject.toml b/pyproject.toml index 33dbb2d..f3ae425 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "decombinator" -version = "5.0.0.dev0" +version = "5.0.1" description = "A fast and efficient tool for the analysis of T-cell receptor repertoire sequences produced by deep sequencing." readme = "README.md" license = {file = "LICENSE"} diff --git a/src/decombinator/__init__.py b/src/decombinator/__init__.py index e69de29..2fe5fde 100644 --- a/src/decombinator/__init__.py +++ b/src/decombinator/__init__.py @@ -0,0 +1 @@ +__version__ = "5.0.1"