How do I post a “release” on github?

2019-02-06 05:42发布

I have a few open source projects that I manage. I've been posting the .tar.gz releases for them to a directory on a webserver I run. I would like to post them to github. Is there a simple way to post the release and a signature for the release? My users aren't sophisticated enough to download the release with git; they want to download and install a .tar.gz file. Some of them may even want to verify the signature.

7条回答
霸刀☆藐视天下
2楼-- · 2019-02-06 06:02

Other awesome option might be distributing from http://bintray.com. It integrates great with GitHub and gives you so much more when distributing binaries.

查看更多
放我归山
3楼-- · 2019-02-06 06:04

There are a few utilities to do what you need.

github_upload (Ruby) : https://github.com/github/upload
App::gh (Perl) : https://metacpan.org/module/App::gh::Command::Upload

Take your pick :)

查看更多
来,给爷笑一个
4楼-- · 2019-02-06 06:04

Check out the GitHub Downloads section - no need for git at all to download files from there.

查看更多
等我变得足够好
5楼-- · 2019-02-06 06:11

You can fetch a tarball of any tag like so:

https://github.com/visionmedia/express/tarball/2.5.4
查看更多
够拽才男人
6楼-- · 2019-02-06 06:12

One nice option github supports is tagging, and automatic tar.gz/zip creation based on those tags. It makes publishing releases really easy.

http://learn.github.com/p/tagging.html

On the commit/branch that you'd like to mark as a release, do

git tag <release_tag>

then

git push --tags

then, on github.com/user/repo/tags, you can see all tagged releases. You can link straight to those files, like in jimw's answer.

查看更多
何必那么认真
7楼-- · 2019-02-06 06:15

GitHub have just announced their new "GitHub Releases" feature, which sounds like exactly what you're after:

https://github.com/blog/1547-release-your-software

查看更多
登录 后发表回答