diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f0554fe16e3..5abd36dde42 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,15 +25,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: 3.12 - - name: Install flit + - name: Install dependencies run: | - pip install flit - - name: Publish the distibution to PyPI - run: flit publish - env: - FLIT_INDEX_URL: https://upload.pypi.org/legacy/ - FLIT_USERNAME: __token__ - FLIT_PASSWORD: ${{ secrets. PYPI_API_TOKEN }} + python -m pip install --upgrade pip + pip install build + - name: Build package + run: python -m build + - name: Publish package + uses: pypa/gh-action-pypi-publish@v1 + with: + user: __token__ + password: ${{ secrets.PYPI_API_TOKEN }} release: name: Create release