From 447d59af35a174de1172b4b9f619125004224550 Mon Sep 17 00:00:00 2001 From: Eugene Triguba Date: Mon, 13 Jul 2020 20:07:41 -0500 Subject: Use poetry for uploading to pypi on github action --- .github/workflows/python-publish.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to '.github/workflows/python-publish.yml') diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 59199f4..6a2ef47 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -1,4 +1,4 @@ -# This workflows will upload a Python Package using Twine when a release is created +# This workflows will upload a Python Package using Poetry when a release is created # For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries name: Upload Python Package @@ -21,11 +21,10 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install setuptools wheel poetry twine + pip install setuptools wheel poetry - name: Build and publish env: - TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} - TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} + PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }} + PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | - poetry build - twine upload dist/* \ No newline at end of file + poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD \ No newline at end of file -- cgit v1.2.3