File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -5,21 +5,31 @@ set -o pipefail
55
66go_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
1219build_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
1725upload_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
2332go_to_build_dir
33+ check_if_meta_yaml_file_exists
2434build_package
2535upload_package
You can’t perform that action at this time.
0 commit comments