1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 16:25:31 +03:00

added branch and revision formdata parameters

This commit is contained in:
Paul Rogalinski 2015-03-31 20:23:09 +02:00
parent 7899d3c38e
commit ad1c73b381

View file

@ -4,9 +4,10 @@ if [ $RUNTESTS ] ; then
cd ./src/test && make test
else
if [ $PUBLISH_URL ] ; then
make -j2
BRANCH=$(git rev-parse --abbrev-ref HEAD)
REVISION=$(git rev-parse HEAD)
TARGET_FILE=obj/cleanflight_${TARGET}
if [ -f ${TARGET_FILE}.bin ];
@ -20,7 +21,7 @@ else
exit 1
fi
curl -F file=@${TARGET_FILE} ${PUBLISH_URL}
curl --form "file=@${TARGET_FILE}" --form "revision=${REVISION}" --form "branch=${BRANCH}" ${PUBLISH_URL}
else
make -j2
fi