mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
added branch and revision formdata parameters
This commit is contained in:
parent
7899d3c38e
commit
ad1c73b381
1 changed files with 3 additions and 2 deletions
|
@ -4,9 +4,10 @@ if [ $RUNTESTS ] ; then
|
||||||
cd ./src/test && make test
|
cd ./src/test && make test
|
||||||
else
|
else
|
||||||
if [ $PUBLISH_URL ] ; then
|
if [ $PUBLISH_URL ] ; then
|
||||||
|
|
||||||
make -j2
|
make -j2
|
||||||
|
|
||||||
|
BRANCH=$(git rev-parse --abbrev-ref HEAD)
|
||||||
|
REVISION=$(git rev-parse HEAD)
|
||||||
TARGET_FILE=obj/cleanflight_${TARGET}
|
TARGET_FILE=obj/cleanflight_${TARGET}
|
||||||
|
|
||||||
if [ -f ${TARGET_FILE}.bin ];
|
if [ -f ${TARGET_FILE}.bin ];
|
||||||
|
@ -20,7 +21,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
curl -F file=@${TARGET_FILE} ${PUBLISH_URL}
|
curl --form "file=@${TARGET_FILE}" --form "revision=${REVISION}" --form "branch=${BRANCH}" ${PUBLISH_URL}
|
||||||
else
|
else
|
||||||
make -j2
|
make -j2
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue