From 3afb8d627648c4b4d9b30402ac4717bc2529b796 Mon Sep 17 00:00:00 2001 From: Silvio Traversaro Date: Tue, 3 Oct 2023 19:10:50 +0200 Subject: [PATCH] generate-conda-packages: Fix upload of noarch packages --- .github/workflows/generate-conda-packages.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/generate-conda-packages.yaml b/.github/workflows/generate-conda-packages.yaml index b16ad3458..f83019f8f 100644 --- a/.github/workflows/generate-conda-packages.yaml +++ b/.github/workflows/generate-conda-packages.yaml @@ -216,6 +216,18 @@ jobs: ls *.tar.bz2 anaconda upload --skip-existing *.tar.bz2 + # Only on linux-64 we upload noarch packages (noarch packages need to be uploaded only once, as they can be reused across platforms) + - name: Upload conda packages (noarch) + shell: bash -l {0} + # Upload by default on schedule events, and on workflow dispatch only if input upload_conda_binaries is 'true' + if: matrix.conda_platform == 'linux-64' and (github.event_name == 'schedule' || github.event_name == 'release' || (github.event_name == 'workflow_dispatch' && github.event.inputs.upload_conda_binaries == 'true')) + env: + ANACONDA_API_TOKEN: ${{ secrets.ANACONDA_API_TOKEN }} + run: | + cd ${CONDA_PREFIX}/conda-bld/noarch/ + ls *.tar.bz2 + anaconda upload --skip-existing *.tar.bz2 + # If the generate-conda-packages completed correctly and binaries are uploaded, # bump automatically the CONDA_BUILD_NUMBER in conda/cmake/CondaGenerationOptions.cmake # of master branch for future builds