diff --git a/.github/workflows/release_packages.yml b/.github/workflows/release_packages.yml index 84f04189f..940a9d984 100644 --- a/.github/workflows/release_packages.yml +++ b/.github/workflows/release_packages.yml @@ -54,7 +54,9 @@ jobs: - name: Build tgz package run: | source /root/.bashrc - source /miniconda/etc/profile.d/conda.sh + if [ -f "/miniconda/etc/profile.d/conda.sh" ]; then + source /miniconda/etc/profile.d/conda.sh + fi source activate py310 git fetch --tags @@ -128,6 +130,10 @@ jobs: - name: Build manylinux wheels run: | + if [ -f "/miniconda/etc/profile.d/conda.sh" ]; then + source /miniconda/etc/profile.d/conda.sh + fi + git fetch --tags TAG_NAME=$(git describe --tags $(git rev-list --tags --max-count=1)) VERSION_NUMBER=$(echo "$TAG_NAME" | sed 's/^v//')