Skip to content

Commit

Permalink
FIX: Use correct shell variable in upload
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
matthewfeickert committed Jan 24, 2024
1 parent f689fba commit 0921408
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ env
# upload wheels
echo "Uploading wheels to anaconda.org..."

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

0 comments on commit 0921408

Please sign in to comment.