Skip to content

Commit

Permalink
Explicitly list packages to avoid trying to upload current_repo.json.bz2
Browse files Browse the repository at this point in the history
  • Loading branch information
lohedges committed Feb 1, 2022
1 parent d856a1e commit e5d2fb0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions actions/upload_package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,23 +29,28 @@ fi

# Upload the packages to the michellab channel on Anaconda Cloud.

# Label release packages with main and dev so that dev is at least
# as new as main.
# Label release packages with main and dev so that dev is at least as new as
# main. Only need to uncomment the libcpuid and fkcombu package uploads when
# there new versions are released.
if [ "$LABEL" = "main" ]; then
anaconda \
--token "$ANACONDA_TOKEN" upload \
--user michellab \
--label main \
--label dev \
--force \
"$CONDA_BLD"/"$OS"/*.bz2
"$CONDA_BLD"/"$OS"/sire-* \
"$CONDA_BLD"/"$OS"/libcpuid-* \
"$CONDA_BLD"/"$OS"/fkcombu-*
else
anaconda \
--token "$ANACONDA_TOKEN" upload \
--user michellab \
--label dev \
--force \
"$CONDA_BLD"/"$OS"/*.bz2
"$CONDA_BLD"/"$OS"/sire-* \
"$CONDA_BLD"/"$OS"/libcpuid-* \
"$CONDA_BLD"/"$OS"/fkcombu-*
fi

echo "Package uploaded!"

0 comments on commit e5d2fb0

Please sign in to comment.