Skip to content

Commit bcaac76

Browse files
committed
- fix artifact name
1 parent 4f3845b commit bcaac76

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/wheels.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,17 @@ jobs:
6060
cmake --version
6161
swig -version
6262

63+
# echo python major.minor version into a environment variable
64+
echo "PYTHON_VERSION=$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')" >> $GITHUB_ENV
6365

66+
- name: Set artifact name
67+
id: artifact-name
68+
shell: bash
69+
run: |
70+
python_tag="${CIBW_BUILD%-*}"
71+
echo "name=libSBML-${{ matrix.os }}-${python_tag}-${{ strategy.job-index }}" >> $GITHUB_OUTPUT
72+
env:
73+
CIBW_BUILD: ${{ matrix.python_version }}
6474
- name: Build Wheels
6575
run: |
6676
python -m cibuildwheel --output-dir wheelhouse
@@ -74,7 +84,7 @@ jobs:
7484
uses: actions/upload-artifact@v4
7585
with:
7686
path: wheelhouse/*.whl
77-
name: libSBML-${{ matrix.os }}-${{ strategy.job-index }}
87+
name: ${{ steps.artifact-name.outputs.name }}
7888

7989
merge_wheels:
8090
needs: [build_wheels]

0 commit comments

Comments
 (0)