diff --git a/.github/workflows/deploy_test_pypi.yml b/.github/workflows/deploy_test_pypi.yml index 8ee626b..6aec3eb 100644 --- a/.github/workflows/deploy_test_pypi.yml +++ b/.github/workflows/deploy_test_pypi.yml @@ -1,6 +1,8 @@ name: Build and publish python package to test pypi -on: [push] +on: + release: + types: [ published ] jobs: publish-service-client-package: @@ -9,7 +11,7 @@ jobs: - name: Publish PyPi package uses: code-specialist/pypi-poetry-publish@v1 with: - PACKAGE_DIRECTORY: "." + PACKAGE_DIRECTORY: "./physiofit" PYTHON_VERSION: "3.10" ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} PUBLISH_REGISTRY_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}