Skip to content

Commit e715761

Browse files
authored
Update release_conda.yml
1 parent 822bc12 commit e715761

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

.github/workflows/release_conda.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,16 @@ jobs:
5555
run: |
5656
mamba install -y -c conda-forge conda-build anaconda-client
5757
58+
# Detectar ruta base de conda (segura en cualquier runner)
59+
- name: Detect Conda base path
60+
id: conda_path
61+
run: |
62+
echo "CONDA_BASE=$(conda info --base)" >> $GITHUB_ENV
63+
echo "Conda base is: $(conda info --base)"
64+
5865
- name: Verify conda-build installation
5966
run: |
60-
source ~/miniforge3/etc/profile.d/conda.sh
67+
source $CONDA_BASE/etc/profile.d/conda.sh
6168
conda activate base
6269
which conda
6370
conda --version
@@ -76,7 +83,7 @@ jobs:
7683
7784
- name: Build conda package
7885
run: |
79-
source ~/miniforge3/etc/profile.d/conda.sh
86+
source $CONDA_BASE/etc/profile.d/conda.sh
8087
conda activate base
8188
echo "Conda build version: $(conda build --version)"
8289
PACKAGE_FILE=$(conda build .github/conda --output)
@@ -87,7 +94,7 @@ jobs:
8794
env:
8895
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
8996
run: |
90-
source ~/miniforge3/etc/profile.d/conda.sh
97+
source $CONDA_BASE/etc/profile.d/conda.sh
9198
conda activate base
9299
PACKAGE_FILE=$(conda build .github/conda --output)
93100
echo "Uploading package: $PACKAGE_FILE"

0 commit comments

Comments
 (0)