From 6a6d5bc2cd4fa56623f1e9832d44c9faa0b5060d Mon Sep 17 00:00:00 2001 From: Charles Turner <52199577+charles-turner-1@users.noreply.github.com> Date: Fri, 14 Feb 2025 11:23:17 +0800 Subject: [PATCH] Conda Deployment issues workaround (#338) * Davide's workaround to publish package to conda --- .github/workflows/cd.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 73877d71..3c56e582 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -50,6 +50,21 @@ jobs: auto-update-conda: false auto-activate-base: false show-channel-urls: true + + - name: Enforce .tar.bz2 packages + # Temporary work-arounds while the action uibcdf/action-build-and-upload-conda-packages gets updated: + # We create a `~/.condarc` file with the correct options to enforce the use of `.tar.bz2` packages + # and we set the channels to be used by conda build + shell: bash + run: | + cat > ~/.condarc << EOF + conda-build: + pkg_format: .tar.bz2 + channels: + - accessnri + - conda-forge + - nodefaults + EOF - name: Build and upload the conda package uses: uibcdf/action-build-and-upload-conda-packages@v1.4.0