File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -46,20 +46,20 @@ jobs:
4646 run : |
4747 CONDA_RECIPE_DIR=".github/conda"
4848 ANACONDA_CHANNEL="ctlearn-project"
49-
50-
51- VERSION="${{ github.event.release.tag_name }}"
52-
53-
49+ FULL_TAG="${{ github.event.release.tag_name }}"
50+
51+ # 2. **EXTRACCIÓN**: Elimina el prefijo 'v' (o 'V') para obtener solo el número (ej: 0.15.0)
52+ # Esta sintaxis de bash elimina la subcadena más corta del inicio que coincida con 'v' o 'V'.
53+ VERSION="${FULL_TAG#v}"
5454 echo "Building package version: $VERSION"
5555
5656 # --- FASE DE CONSTRUCCIÓN ---
5757 # 1. Pasamos la versión como variable de entorno PACKAGE_VERSION
58- conda run PACKAGE_VERSION=$VERSION conda build $CONDA_RECIPE_DIR
58+ conda run PACKAGE_VERSION=$VERSION conda build $CONDA_RECIPE_DIR --skip-test
5959
6060 # 2. --- FASE DE SUBIDA ---
6161 # Obtenemos la ruta del paquete construido
62- PACKAGE_PATH=$(conda run PACKAGE_VERSION=$VERSION conda build $CONDA_RECIPE_DIR --output)
62+ PACKAGE_PATH=$(conda run PACKAGE_VERSION=$VERSION conda build $CONDA_RECIPE_DIR --output --skip-test )
6363
6464 # 3. Subimos el archivo
6565 echo "Uploading $PACKAGE_PATH to $ANACONDA_CHANNEL channel..."
You can’t perform that action at this time.
0 commit comments