diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index eac7864..c0e94fc 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -9,11 +9,15 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install build setuptools - name: Check consistency between the package version and release tag run: | PACKAGE_VER="v`python setup.py --version`" @@ -21,10 +25,6 @@ jobs: then echo "Package version ($PACKAGE_VER) != release tag (${{ github.event.release.tag_name }})."; exit 1 fi - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install build - name: Build package run: python -m build - name: Publish to PyPI