only upload api docs from master branch

[#78468272]