diff options
| author | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-13 20:07:41 -0500 |
|---|---|---|
| committer | Eugene Triguba <eugenetriguba@gmail.com> | 2020-07-13 20:07:41 -0500 |
| commit | 447d59af35a174de1172b4b9f619125004224550 (patch) | |
| tree | f939f2b9c2295cdb675b4662dd752f217057371a /.github/workflows | |
| parent | Bump version: 0.0.0 → 0.1.0 (diff) | |
| download | lirc-447d59af35a174de1172b4b9f619125004224550.zip | |
Use poetry for uploading to pypi on github action
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/python-publish.yml | 11 |
1 files changed, 5 insertions, 6 deletions
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 |