diff --git a/.github/workflows/pypi-publish.yml b/.github/workflows/pypi-publish.yml index 45ad965e479..32b1a3f7577 100644 --- a/.github/workflows/pypi-publish.yml +++ b/.github/workflows/pypi-publish.yml @@ -164,9 +164,9 @@ jobs: id: handle_tag shell: bash run: | - # If the tag ends with -beta.N, we need to call setup_version.py + # If the tag ends with -beta.N or -rc.N, we need to call setup_version.py # and export repo as "fury" instead of "pypi" - if [[ ${{ github.ref }} == refs/tags/*-beta.* ]]; then + if [[ ${{ github.ref }} == refs/tags/*-beta.* ]] || [[ ${{ github.ref }} == refs/tags/*-rc.* ]]; then TAG=$(echo ${{ github.ref }} | sed 's/refs\/tags\///') pip install packaging python ci/setup_version.py $TAG