Skip to content

Commit 5b4c4b8

Browse files
authored
Update entrypoint.sh
1 parent 4beff53 commit 5b4c4b8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

entrypoint.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,31 @@ set -o pipefail
55

66
go_to_build_dir() {
77
if [ ! -z $INPUT_SUBDIR ]; then
8-
ls
8+
cd $INPUT_SUBDIR
9+
fi
10+
}
11+
12+
check_if_meta_yaml_file_exists() {
13+
if [ ! -f meta.yaml ]; then
14+
echo "meta.yaml must exist in the directory that is being packaged and published."
15+
exit 1
916
fi
1017
}
1118

1219
build_package(){
1320
conda build -c conda-forge -c bioconda --output-folder . .
1421
conda convert -p osx-64 linux-64/*.tar.bz2
22+
conda convert -p win-64 linux-64/*.tar.bz2
1523
}
1624

1725
upload_package(){
1826
export ANACONDA_API_TOKEN=$INPUT_ANACONDATOKEN
1927
anaconda upload --label main linux-64/*.tar.bz2
2028
anaconda upload --label main osx-64/*.tar.bz2
29+
anaconda upload --label main win-64/*.tar.bz2
2130
}
2231

2332
go_to_build_dir
33+
check_if_meta_yaml_file_exists
2434
build_package
2535
upload_package

0 commit comments

Comments
 (0)