diff --git a/.travis.yml b/.travis.yml index db6a5d0..54d11ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,7 +9,7 @@ deploy: provider: releases api_key: $GITHUB_API_KEY file_glob: true - file: "build/mbc" + file: build/mbc* skip_cleanup: true branches: diff --git a/build.sh b/build.sh index 07758a8..23897b7 100644 --- a/build.sh +++ b/build.sh @@ -23,5 +23,8 @@ echo "building..." cd build arm-linux-musleabihf-gcc -std=c99 -D_XOPEN_SOURCE=700 -static -O2 -o mbc ../mbc.c ||die arm-linux-musleabihf-strip mbc ||die +mkdir -p hook/action ||die +echo -e "#!/bin/bash\n./mbc $@" > "hook/action/__unnamed__" ||die +tar -czf mbc.tar.gz mbc ./hook/action/__unnamed__ cd ..