diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bd8fe986..363c61a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - uses: actions/cache@v4 with: path: ~/.cache/pip - key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('setup.py') }} + key: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip-${{ hashFiles('pyproject.toml') }} restore-keys: ${{ runner.os }}-${{ matrix.PYTHON_VERSION }}-pip- - uses: actions/checkout@v4 with: @@ -37,10 +37,9 @@ jobs: with: python-version: ${{ matrix.PYTHON_VERSION }} architecture: "x64" - - run: python -m pip install --upgrade pip setuptools wheel twine + - run: python -m pip install --upgrade pip build twine - name: Build and publish python-language-server run: | - python setup.py bdist_wheel --universal - python setup.py sdist + python -m build python -m twine check dist/* python -m twine upload dist/*