Skip to content

Commit

Permalink
Upload ab_dev environment file together with the built package (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
haasad authored Feb 19, 2022
1 parent c910ce3 commit 0784abe
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 7 additions & 0 deletions ci/conda-envs/ab_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: ab_dev
channels:
- conda-forge
- cmutel
- bsteubing
dependencies:
- activity-browser-dev

0 comments on commit 0784abe

Please sign in to comment.