Skip to content

Commit 3eb3a42

Browse files
FIX: Use correct shell variable in upload (#53)
* Use the correct shell variable "LABEL_ARGS" to pass the lable args to the `anaconda upload` command. - Amends PR #47 * Note that it is important that ${LABEL_ARGS} is NOT quoted during shell parameter expansion, else it will be treated as a file path to anaconda upload and not an argument. - e.g. This will trigger `File "--label main " does not exist` errors.
1 parent f689fba commit 3eb3a42

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cmd.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,11 @@ env
7373
# upload wheels
7474
echo "Uploading wheels to anaconda.org..."
7575

76+
# Note: ${LABEL_ARGS} must not be quoted during shell parameter expansion,
77+
# else it will be treated as a file and not additional command arguments.
7678
anaconda --token "${ANACONDA_TOKEN}" upload \
7779
--force \
7880
--user "${ANACONDA_ORG}" \
79-
$ANACONDA_LABELS \
81+
${LABEL_ARGS} \
8082
"${INPUT_ARTIFACTS_PATH}"/*.whl
8183
echo "Index: https://pypi.anaconda.org/${ANACONDA_ORG}/simple"

0 commit comments

Comments
 (0)