From 1e2e64bbf78840bd7c34848a1a6eb8852225b976 Mon Sep 17 00:00:00 2001 From: legregam Date: Mon, 22 May 2023 10:18:42 +0200 Subject: [PATCH] Added test workflow for deployment on test_pypi using poetry --- .github/workflows/deploy_test_pypi.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 }}