Skip to content

Commit 7253c33

Browse files
committed
attempt
1 parent e483523 commit 7253c33

File tree

2 files changed

+13
-18
lines changed

2 files changed

+13
-18
lines changed

.github/workflows/conda_release.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,19 @@ on:
88
jobs:
99
build-and-upload:
1010
runs-on: ubuntu-latest
11+
defaults:
12+
run:
13+
shell: bash -l {0}
1114

1215
steps:
16+
- uses: conda-incubator/setup-miniconda@v3
17+
with:
18+
miniconda-version: "latest"
19+
channels: bioconda, conda-forge, defaults
20+
use-only-tar-bz2: true # IMPORTANT: This needs to be set for caching to work properly!
21+
auto-update-conda: true
22+
auto-activate-base: true
23+
1324
# 1) Check out the current repo (so we can access conda-recipe/)
1425
- name: Check out repository
1526
uses: actions/checkout@v3
@@ -18,14 +29,8 @@ jobs:
1829

1930
# 2) Install Miniconda and conda-build/anaconda-client
2031
- name: create environment with conda
21-
uses: conda-incubator/setup-miniconda@v3
22-
with:
23-
channels: conda-forge,defaults
24-
auto-activate-base: false
25-
auto-update-conda: true
26-
activate-environment: build-env
27-
environment-file: conda-recipe/build-env.yaml
28-
32+
run: |
33+
conda install -y conda-build anaconda-client
2934
# 3) Determine VERSION (strip the leading “v”) and compute SHA256
3035
- name: Set version and SHA256
3136
id: vars
@@ -79,7 +84,6 @@ jobs:
7984
- name: Build conda package
8085
run: |
8186
cd conda-recipe
82-
conda activate build-env
8387
conda-build . --output-folder ../conda-build-artifacts
8488
8589
# 6) Upload the built package to Anaconda.org

conda-recipe/build-env.yaml

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)