diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index d10a8cc..e60af0f 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -6,28 +6,22 @@ # separate terms of service, privacy policy, and support # documentation. -name: Upload Python Package +name: Build and publish python package on: release: - types: [published] - -permissions: - contents: read + types: [ published ] jobs: - deploy: - + publish-service-client-package: runs-on: ubuntu-latest - + permissions: + contents: write steps: - - name: Checkout Repository # You must checkout your repository first. - uses: actions/checkout@v3 - - - name: Publish Package - uses: celsiusnarhwal/poetry-publish@v2 - with: - python-version: 3.12 - poetry-version: 1.3.1 - token: ${{ secrets.PYPI_TOKEN }} - build: true + - name: Publish PyPi package + uses: cadifyai/poetry-publish@v0.1.0 + with: + PACKAGE_DIRECTORY: "./NLarge/" + PYTHON_VERSION: "3.12" + ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PUBLISH_REGISTRY_PASSWORD }} \ No newline at end of file