diff options
-rw-r--r-- | .github/workflows/release-pypi.yml | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/.github/workflows/release-pypi.yml b/.github/workflows/release-pypi.yml index 95b10b3..3701184 100644 --- a/.github/workflows/release-pypi.yml +++ b/.github/workflows/release-pypi.yml @@ -11,15 +11,16 @@ jobs: steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 + with: + python-version: "3.x" + - uses: abatilo/actions-poetry@v2.0.0 - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install setuptools wheel twine + run: poetry install --no-root - name: Build and publish env: TWINE_USERNAME: __token__ TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} run: | - python setup.py sdist bdist_wheel - twine upload --skip-existing dist/* + poetry run python setup.py sdist bdist_wheel + poetry run twine upload --skip-existing dist/* |