From 98ef0e0b2d7e75e4ef502d5a8a682aff207074dd Mon Sep 17 00:00:00 2001 From: benadha Date: Sun, 13 Feb 2022 22:34:05 +0700 Subject: Update GA release workflow to use poetry --- .github/workflows/release-pypi.yml | 11 ++++++----- 1 file 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/* -- cgit