From da2db7510a4cf277d9566d6ebb71b299e9a2ac74 Mon Sep 17 00:00:00 2001 From: Titus von Koeller <9048635+Titus-von-Koeller@users.noreply.github.com> Date: Fri, 8 Mar 2024 00:09:15 +0000 Subject: [PATCH] remove broken PyPi upload for now --- .github/workflows/python-package.yml | 33 ---------------------------- 1 file changed, 33 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index ebaef73f0..c868b18d2 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -213,36 +213,3 @@ jobs: name: bdist_wheel_${{ matrix.os }}_${{ matrix.arch }} path: dist/bitsandbytes-*.whl retention-days: 7 - publish: - needs: build-wheels - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write # needed to use an OIDC token for a trusted publishing exchange w/ PyPi - # TODO: remove pull_request condition once done testing - if: > - github.event_name == 'pull_request' || - (github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')) - steps: - - uses: actions/checkout@v4 - - name: Download build artifact - uses: actions/download-artifact@v4 - with: - path: dist/ - merge-multiple: true - pattern: "bdist_wheel_*" - - run: | - ls -lR dist/ - - name: Publish to TestPyPI (PRs) - if: github.event_name == 'pull_request' - uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ - user: __token__ - password: ${{ secrets.TEST_PYPI_API_TOKEN }} - - name: Publish to PyPI (Tagged on main) - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}