From 451761489649afa49c3f1b521cf2114c05753883 Mon Sep 17 00:00:00 2001 From: Santanu Sinha Date: Fri, 5 Apr 2024 16:21:50 +0530 Subject: [PATCH] Added pypi test publish --- .github/workflows/pypi-test-release.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/pypi-test-release.yml diff --git a/.github/workflows/pypi-test-release.yml b/.github/workflows/pypi-test-release.yml new file mode 100644 index 0000000..f3993fd --- /dev/null +++ b/.github/workflows/pypi-test-release.yml @@ -0,0 +1,20 @@ +name: Build and publish python package to test pypi + +on: + push: + # Pattern matched against refs/tags + tags: + - 'releases/*' # Push events to every tag not containing / + +jobs: + publish-service-client-package: + runs-on: ubuntu-latest + steps: + - name: Publish PyPi package + uses: code-specialist/pypi-poetry-publish@v1 + with: + PACKAGE_DIRECTORY: "./example-package/" + PYTHON_VERSION: "3.10" + ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} + PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PUBLISH_REGISTRY_PASSWORD }} + PUBLISH_REGISTRY: "https://test.pypi.org/legacy/" \ No newline at end of file