Skip to content

Commit ba19029

Browse files
committed
Fix anaconda windows upload, upload only required package, use standard conda path
1 parent df02905 commit ba19029

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/build_conda_windows.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff 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
238236
concurrency:
239237
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ inputs.repository }}-${{ github.event_name == 'workflow_dispatch' }}

0 commit comments

Comments
 (0)