diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 80cd810..af68780 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -22,7 +22,6 @@ jobs: name: Build source distribution runs-on: ubuntu-latest timeout-minutes: 120 - if: github.repository_owner == 'aarnphm' # Don't run on fork repository steps: - name: Checkout uses: actions/checkout@v4 @@ -89,32 +88,10 @@ jobs: with: name: ${{ matrix.python[0] }}-${{ startsWith(matrix.platform[0], 'macosx') && 'macosx' || matrix.platform[0] }} path: ./wheelhouse/*.whl - release-wheels-sdist: - needs: [build-sdist] - runs-on: ubuntu-latest - if: github.repository_owner == 'aarnphm' - steps: - - uses: actions/download-artifact@v3 - - name: Sanity check and setup dist folder - run: | - ls -R - mkdir -p dist - cp -r artifact/* dist/ - # MacOS wheels - cp -r cp310-macosx/*.whl dist/ - cp -r cp311-macosx/*.whl dist/ - cp -r cp38-macosx/*.whl dist/ - cp -r cp39-macosx/*.whl dist/ - - uses: pypa/gh-action-pypi-publish@v1.8.11 - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }} bazel-build-and-release-wheels: name: Build wheels for python${{ matrix.python-version }} (${{ matrix.os }}) runs-on: ${{ matrix.os }} timeout-minutes: 120 - if: github.repository_owner == 'aarnphm' # Don't run on fork repository strategy: fail-fast: false matrix: @@ -149,10 +126,3 @@ jobs: run: | VERSION=${{ github.ref_name }} echo "version=${VERSION:1}" >>$GITHUB_OUTPUT - - name: Publish built wheels with bazel - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') - env: - TWINE_USERNAME: __token__ - TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }} - run: | - bazel run --define=ci=true --stamp --embed_label=${{ steps.get-info.outputs.version }} -- //:whispercpp_wheel.publish --repository pypi --verbose