Skip to content

Commit 5a736c9

Browse files
authored
Update release_conda.yml
1 parent 1df4935 commit 5a736c9

File tree

1 file changed

+2
-18
lines changed

1 file changed

+2
-18
lines changed

.github/workflows/release_conda.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
with:
1818
fetch-depth: 0
1919

20-
# 1, 2. Setup Conda & Install Tools (Correcto)
2120
- name: Setup Miniconda and Conda Tools
2221
uses: conda-incubator/setup-miniconda@v3
2322
with:
@@ -32,44 +31,29 @@ jobs:
3231
shell: bash
3332
run: |
3433
mamba install anaconda-client conda-build -y
35-
36-
# 3. ¡Paso eliminado para evitar conflictos de autenticación! (Correcto)
37-
38-
# 4. Construir y Subir el Paquete (Usando el Token Org. como ENV)
34+
3935
- name: Conda Build and Upload Package
4036
shell: bash
41-
# CLAVE: Inyectamos el token de la organización como variable de entorno
4237
env:
4338
ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_TOKEN }}
4439
run: |
4540
CONDA_RECIPE_DIR=".github/conda"
4641
ANACONDA_CHANNEL="ctlearn-project"
47-
TEST_FLAG="--no-test"
42+
TEST_FLAG=""
4843
49-
# Lógica de Versión (Correcta)
5044
FULL_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "0.0.0+dev")
5145
VERSION="${FULL_TAG#v}"
5246
VERSION="${VERSION#V}"
53-
54-
if [[ "${{ github.event_name }}" == "release" ]]; then
55-
TEST_FLAG=""
56-
fi
5747
5848
echo "Building package version: $VERSION"
5949
export PACKAGE_VERSION=$VERSION
6050
61-
# FASE DE CONSTRUCCIÓN
6251
conda run conda build $CONDA_RECIPE_DIR $TEST_FLAG
6352
64-
# OBTENER PATH
6553
PACKAGE_PATH=$(conda run conda build $CONDA_RECIPE_DIR --output)
6654
67-
# FASE DE SUBIDA
6855
if [[ "$VERSION" != "0.0.0+dev" ]]; then
6956
echo "Uploading $PACKAGE_PATH to $ANACONDA_CHANNEL channel..."
70-
71-
# CLAVE FINAL: Usamos --user con el nombre del canal/organización.
72-
# El token de la organización en ANACONDA_API_TOKEN autentica esto.
7357
conda run anaconda upload \
7458
"$PACKAGE_PATH" \
7559
--force \

0 commit comments

Comments
 (0)