Update release.yml

Changes:
* Use recommended build package for building as the use of setup.py as a
  command line to tool is deprecated
* Install multiple packages with one command which theoretically saves
  some time
This commit is contained in:
Tero Paloheimo 2024-06-25 20:29:33 +03:00
parent cca84acde1
commit 896487f1a6
1 changed files with 2 additions and 3 deletions

View File

@ -21,8 +21,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install wheel
pip install build wheel
- name: Get Current Version
run: |
@ -50,7 +49,7 @@ jobs:
token: ${{ secrets.GH_API_SECRET }}
- name: Build Python Package
run: rm -Rf build *.egg-info/ && python3 setup.py sdist bdist_wheel
run: rm -rf build *.egg-info/ && python3 -m build
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@v1.6.4