From 896487f1a6295396f66fb23fa56679a0b077f2eb Mon Sep 17 00:00:00 2001 From: Tero Paloheimo Date: Tue, 25 Jun 2024 20:29:33 +0300 Subject: [PATCH] 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 --- .github/workflows/release.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 00fb1ca0..3376b8da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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