From 0784abe22f3f9b735d9c61fdc6e2634a3663ace7 Mon Sep 17 00:00:00 2001 From: Adrian Haas <11636405+haasad@users.noreply.github.com> Date: Sat, 19 Feb 2022 23:32:23 +0100 Subject: [PATCH] Upload ab_dev environment file together with the built package (#732) --- .github/workflows/main.yaml | 5 ++++- ci/conda-envs/ab_dev.yml | 7 +++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 ci/conda-envs/ab_dev.yml diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 8085ff272..4f0cb8163 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -117,15 +117,18 @@ jobs: - name: Patch recipe with run requirements from stable uses: mikefarah/yq@master # Adds the run dependencies from the stable recipe to the dev recipe (inplace) + # Also adds the dependecies to the ab_dev environment file with: cmd: | yq eval-all -i 'select(fi == 0).requirements.run += select(fi == 1).requirements.run | select(fi == 0)' ci/recipe/dev/meta.yaml ci/recipe/stable/meta.yaml + yq eval-all -i 'select(fi == 0).dependencies += select(fi == 1).requirements.run | select(fi == 0)' ci/conda-envs/ab_dev.yml ci/recipe/stable/meta.yaml - name: Show patched dev recipe run: cat ci/recipe/dev/meta.yaml - name: Build development package run: | conda build ci/recipe/dev - - name: Upload the development package + - name: Upload the activity-browser-dev package and env run: | anaconda -t ${{ secrets.CONDA_UPLOAD_TOKEN }} upload --force \ /usr/share/miniconda/envs/build/conda-bld/noarch/*.tar.bz2 + anaconda -t ${{ secrets.CONDA_UPLOAD_TOKEN }} upload ci/conda-envs/ab_dev.yml diff --git a/ci/conda-envs/ab_dev.yml b/ci/conda-envs/ab_dev.yml new file mode 100644 index 000000000..89797585f --- /dev/null +++ b/ci/conda-envs/ab_dev.yml @@ -0,0 +1,7 @@ +name: ab_dev +channels: + - conda-forge + - cmutel + - bsteubing +dependencies: + - activity-browser-dev