diff --git a/.github/workflows/deploy_test_pypi.yml b/.github/workflows/deploy_test_pypi.yml index e79e4c8..6aec3eb 100644 --- a/.github/workflows/deploy_test_pypi.yml +++ b/.github/workflows/deploy_test_pypi.yml @@ -1,14 +1,17 @@ name: Build and publish python package to test pypi -on: [push] +on: + release: + types: [ published ] jobs: publish-service-client-package: runs-on: ubuntu-latest steps: - name: Publish PyPi package - uses: code-specialist/pypi-poetry-publish@main + uses: code-specialist/pypi-poetry-publish@v1 with: + PACKAGE_DIRECTORY: "./physiofit" PYTHON_VERSION: "3.10" ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} PUBLISH_REGISTRY_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }} diff --git a/physiofit/__init__.py b/physiofit/__init__.py index 7077eb4..b7a9c15 100644 --- a/physiofit/__init__.py +++ b/physiofit/__init__.py @@ -1,3 +1,3 @@ -import importlib.metadata +"""Version changes handled by github action""" -__version__ = importlib.metadata.version("physiofit") \ No newline at end of file +__version__ = "3.0.4" \ No newline at end of file