diff options
author | benadha <benawiadha@gmail.com> | 2022-02-13 22:34:05 +0700 |
---|---|---|
committer | benadha <benawiadha@gmail.com> | 2022-02-13 22:34:05 +0700 |
commit | 98ef0e0b2d7e75e4ef502d5a8a682aff207074dd (patch) | |
tree | 4e21fc4416aad2ab25932a06e886d419cfb3e51c /.github/workflows | |
parent | bfb2f1a650a4bffa0b3b597d0ff2d5ef76ed4caf (diff) | |
download | epy-98ef0e0b2d7e75e4ef502d5a8a682aff207074dd.tar.gz |
Update GA release workflow to use poetry
Diffstat (limited to '.github/workflows')
-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/* |