File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -225,15 +225,13 @@ jobs:
225225 if : ${{ (inputs.trigger-event == 'push' && env.CHANNEL != 'test') || (env.CHANNEL == 'test' && startsWith(github.event.ref, 'refs/tags/')) }}
226226 working-directory : ${{ inputs.repository }}
227227 env :
228+ PACKAGE_NAME : ${{ inputs.package-name }}
228229 CONDA_PYTORCHBOT_TOKEN : ${{ secrets.CONDA_PYTORCHBOT_TOKEN }}
229230 run : |
231+ set -euxo pipefail
230232 source "${BUILD_ENV_FILE}"
231233 ${CONDA_RUN} conda install --yes --quiet anaconda-client
232- set -x
233- ANACONDA_PATH=$(${CONDA_RUN} conda info --base)/bin
234- set ANACONDA_PATH
235- echo "$ANACONDA_PATH"
236- "$ANACONDA_PATH/anaconda" -t "${CONDA_PYTORCHBOT_TOKEN}" upload distr/win-64/*.tar.bz2 -u "pytorch-${CHANNEL}" --label main --no-progress --force
234+ ${CONDA_RUN} anaconda -t "${CONDA_PYTORCHBOT_TOKEN}" upload "distr/win-64/${PACKAGE_NAME}*.tar.bz2" -u "pytorch-${CHANNEL}" --label main --no-progress --force
237235
238236concurrency :
239237 group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}
You can’t perform that action at this time.
0 commit comments