Skip to content

Commit

Permalink
Merge pull request #1493 from robotology/traversaro-patch-3
Browse files Browse the repository at this point in the history
generate-conda-packages: Fix upload of noarch packages
  • Loading branch information
traversaro authored Oct 3, 2023
2 parents be51912 + 3afb8d6 commit ac03a04
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/generate-conda-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac03a04

Please sign in to comment.