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:
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
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue