diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 31fd479..7f3a046 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -115,6 +115,28 @@ jobs: uses: PyO3/maturin-action@v1 env: MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_TEST_API_TOKEN }} + MATURIN_REPOSITORY_URL: "https://test.pypi.org/legacy/" + with: + command: upload + args: --skip-existing * + working-directory: bindings/python + + publish-pypi: + if: ${{ github.event.inputs.release == 'true' }} + name: >- + Publish Python 🐍 distribution 📦 to PyPI + runs-on: ubuntu-latest + needs: [linux, windows, macos, sdist] + steps: + - uses: actions/download-artifact@v3 + with: + name: wheels + path: bindings/python/ + - name: Publish distribution 📦 to PyPI + uses: PyO3/maturin-action@v1 + env: + MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }} + MATURIN_REPOSITORY_URL: "https://upload.pypi.org/legacy/" with: command: upload args: --skip-existing * diff --git a/bindings/python/pyproject.toml b/bindings/python/pyproject.toml index 0d8d8a4..f523f7f 100644 --- a/bindings/python/pyproject.toml +++ b/bindings/python/pyproject.toml @@ -16,7 +16,7 @@ classifiers = [ "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries", "Topic :: Software Development :: Libraries :: Python Modules", - "Office/Business :: Financial :: Spreadsheet", + "Topic :: Office/Business :: Financial :: Spreadsheet", ] authors = [ { name = "Nicolás Hatcher", email = "nicolas@theuniverse.today" },