Skip to content

Commit 4494375

Browse files
committed
fix
1 parent b85a6ce commit 4494375

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/conda_release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,16 @@ jobs:
9999
ANACONDA_USER: ${{ secrets.ANACONDA_USER }}
100100
VERSION: ${{ steps.vars.outputs.VERSION }}
101101
run: |
102+
# 1) Upload any noarch packages (only once, from any job instance)
103+
if [ "${{ matrix.platform.subdir }}" = "linux-64" ]; then
104+
# The noarch files live under "noarch/"
105+
for PKG_noarch in conda-build-artifacts/noarch/*-${{ env.VERSION }}-*.tar.bz2; do
106+
echo "Uploading noarch package: $PKG_noarch"
107+
anaconda -t $ANACONDA_TOKEN upload "$PKG_noarch" --user $ANACONDA_USER --label main --force
108+
fi
109+
110+
# 2) Upload the arch-specific C++ package (this job’s platform)
102111
for PKG in conda-build-artifacts/${{ matrix.platform.subdir }}/*-${{ env.VERSION }}-*.tar.bz2; do
103112
echo "Uploading $PKG"
104113
anaconda -t $ANACONDA_TOKEN upload "$PKG" --user $ANACONDA_USER --label main --force
105-
done
106-
for PKG in conda-build-artifacts/noarch/*-${{ env.VERSION }}-*.tar.bz2; do
107-
echo "Uploading $PKG"
108-
anaconda -t $ANACONDA_TOKEN upload "$PKG" --user $ANACONDA_USER --label main --force
109114
done

0 commit comments

Comments
 (0)