lib/GitHub/Receiver/Repositories/Releases.php
public function uploadReleaseAsset(string $id, string $contentType, string $name): array
    {

        return $this->getApi()->setApiUrl(AbstractApi::API_UPLOADS)->request($this->getApi()
                                                                                  ->sprintf('/repos/:owner/:repo/releases/:id/assets?:arg',
                                                                                      $this->getRepositories()
                                                                                           ->getOwner(),
                                                                                      $this->getRepositories()
                                                                                           ->getRepo(), $id,
                                                                                      http_build_query(['name' => $name])),
            Request::METHOD_POST, [
                'Content-Type' => $contentType
            ]);
    }
public function uploadReleaseAsset(string $id, string $contentType, string $name): array
    {

        return $this->getApi()->setApiUrl(AbstractApi::API_UPLOADS)->request($this->getApi()
                                                                                  ->sprintf('/repos/:owner/:repo/releases/:id/assets?:arg',
                                                                                      $this->getRepositories()
                                                                                           ->getOwner(),
                                                                                      $this->getRepositories()
                                                                                           ->getRepo(), $id,
                                                                                      http_build_query(['name' => $name])),
            Request::METHOD_POST, [
                'Content-Type' => $contentType
            ]);
    }
public function uploadReleaseAsset ( string $ id , string $ contentType , string $ name ) : array { return $ this -> getApi ( ) -> setApiUrl ( AbstractApi :: API_UPLOADS ) -> request ( $ this -> getApi ( ) -> sprintf ( '/repos/:owner/:repo/releases/:id/assets?:arg' , $ this -> getRepositories ( ) -> getOwner ( ) , $ this -> getRepositories ( ) -> getRepo ( ) , $ id , http_build_query ( [ 'name' => $ name ] ) ) , Request :: METHOD_POST , [ 'Content-Type' => $ contentType ] ) ; }
Upload a release asset

@link https://developer.github.com/v3/repos/releases/#upload-a-release-asset

@param string $id
@param string $contentType
@param string $name

@return array
Upload a release asset