Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
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
  • Loading branch information
terop committed Jun 25, 2024
1 parent cca84ac commit 896487f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 896487f

Please sign in to comment.