From d11b2a6975cdbe86e450a362adcc26a9b1847d40 Mon Sep 17 00:00:00 2001 From: Will Jones Date: Fri, 13 Dec 2024 14:19:14 -0800 Subject: [PATCH] ci: fix python beta release to publish to fury (#1937) We have been publishing all releases--even preview ones--to PyPI. This was because of a faulty bash if statement. This PR fixes that conditional. --- .github/workflows/upload_wheel/action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload_wheel/action.yml b/.github/workflows/upload_wheel/action.yml index 6eacc6b0..03725d03 100644 --- a/.github/workflows/upload_wheel/action.yml +++ b/.github/workflows/upload_wheel/action.yml @@ -22,7 +22,7 @@ runs: shell: bash id: choose_repo run: | - if [ ${{ github.ref }} == "*beta*" ]; then + if [[ ${{ github.ref }} == *beta* ]]; then echo "repo=fury" >> $GITHUB_OUTPUT else echo "repo=pypi" >> $GITHUB_OUTPUT @@ -33,7 +33,7 @@ runs: FURY_TOKEN: ${{ inputs.fury_token }} PYPI_TOKEN: ${{ inputs.pypi_token }} run: | - if [ ${{ steps.choose_repo.outputs.repo }} == "fury" ]; then + if [[ ${{ steps.choose_repo.outputs.repo }} == fury ]]; then WHEEL=$(ls target/wheels/lancedb-*.whl 2> /dev/null | head -n 1) echo "Uploading $WHEEL to Fury" curl -f -F package=@$WHEEL https://$FURY_TOKEN@push.fury.io/lancedb/