def publishRelease(tag):
    id = lastReleaseId(tag)
    payload = "{\"tag_name\":\"" + tag + "\", "
    payload += "\"draft\":" + "false" + ", "
    payload += "\"target_commitish\":\"" + "master" + "\"}"
    content = ghApiClient.postUrl('repos/swagger-api/swagger-parser/releases/' + str(id), payload)
    return content
def addRelease(release_title, tag, content):
    payload = "{\"tag_name\":\"" + tag + "\", "
    payload += "\"name\":" + json.dumps(release_title) + ", "
    payload += "\"body\":" + json.dumps(content) + ", "
    payload += "\"draft\":" + "true" + ", "
    payload += "\"prerelease\":" + "false" + ", "
    payload += "\"target_commitish\":\"" + "master" + "\"}"
    content = ghApiClient.postUrl('repos/swagger-api/swagger-core/releases',
                                  payload)
    return content