Skip to content

Commit 824b976

Browse files
committed
use CONDA_PREFIX instead of CONDA when uploading Windows package
since conda-build isn't being installed in the base environment, CONDA_PREFIX is needed to find the conda-bld folder containing the package
1 parent 7f90c80 commit 824b976

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,6 @@ jobs:
104104
miniforge-version: latest
105105
activate-environment: build
106106
channels: conda-forge
107-
conda-remove-defaults: true
108107
python-version: ${{ matrix.python }}
109108

110109
- name: Install conda build
@@ -127,7 +126,7 @@ jobs:
127126
- name: Store conda paths as envs
128127
shell: bash -l {0}
129128
run: |
130-
echo "CONDA_BLD=$CONDA/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
129+
echo "CONDA_BLD=$CONDA_PREFIX/conda-bld/win-64/" | tr "\\\\" '/' >> $GITHUB_ENV
131130
echo "WHEELS_OUTPUT_FOLDER=$GITHUB_WORKSPACE${{ runner.os == 'Linux' && '/' || '\\' }}" >> $GITHUB_ENV
132131
133132
- name: Build conda package
@@ -278,7 +277,6 @@ jobs:
278277
with:
279278
miniforge-version: latest
280279
channels: conda-forge
281-
conda-remove-defaults: true
282280
activate-environment: ${{ env.TEST_ENV_NAME }}
283281
python-version: ${{ matrix.python }}
284282

0 commit comments

Comments
 (0)