Skip to content

Commit 3bfcba6

Browse files
Shift conda publication mechanism
1 parent b75cb4f commit 3bfcba6

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

.github/workflows/publish.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: Publish DataSAIL
22

33
on:
4-
release:
5-
types: [published]
4+
# release:
5+
# types: [published]
66
workflow_dispatch:
77

88
jobs:

build.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
PYTHON_V=$1
2+
VERSION=$2
3+
TOKEN=$3
4+
5+
conda create -n builder -y python=$PYTHON_V
6+
source /home/rjo21/miniconda3/bin/activate builder
7+
conda install anaconda-client conda-build git
8+
if [ $VERSION == "full" ]; then
9+
conda-build -q -c conda-forge -c bioconda --output-folder . --no-test --override-channels --package-format tar.bz2 --append-file base_recipe.yaml recipe
10+
else
11+
conda-build -q -c conda-forge -c bioconda --output-folder . --no-test --override-channels --package-format tar.bz2 --append-file base_recipe.yaml recipe_lite
12+
conda convert -p osx-arm64 linux-64/*.tar.bz2
13+
conda convert -p win-64 linux-64/*.tar.bz2
14+
anaconda -t $TOKEN upload osx-arm64/*.tar.bz2
15+
anaconda -t $TOKEN upload win-64/*.tar.bz2
16+
fi
17+
conda convert -p osx-64 linux-64/*.tar.bz2
18+
anaconda -t $TOKEN upload linux-64/*.tar.bz2
19+
anaconda -t $TOKEN upload osx-64/*.tar.bz2
20+
21+
source /home/rjo21/miniconda3/bin/deactivate
22+
# conda remove -n builder --all -y

0 commit comments

Comments
 (0)