【发布时间】:2017-12-27 15:55:21
【问题描述】:
我正在使用 blow 命令在 Github repo 上发布一个版本:
curl -X POST -H "Authorization: token xxxxxxxxx" -d '{"tag_name": "test", "name":"release-0.0.1","body":"this is a test release"}' https://api.github.com/repos/xxxxxx
我可以看到创建了一个新版本。但是它下面有两个下载按钮:
Source code (zip)
Source code (tar.gz)
如何在没有源代码的情况下发布?
如果我无法删除源代码附件,我如何上传额外的二进制文件?我尝试像这样使用 API Upload a release asset:POST https://<upload_url>/repos/:owner/:repo/releases/:id/assets?name=foo.zip,它成功返回,但我在 Github 发布选项卡上找不到二进制文件。
【问题讨论】:
标签: git github github-api