How do I post a “release” on github?

二次信任 提交于 2019-12-30 01:48:11

问题


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.


回答1:


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




回答2:


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.




回答3:


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




回答4:


I you'd also like to upload other kinds of files (compiled binaries, ...) and edit github releases from the commandline with a rather easy-to-use tool, I made something for that. It's called github-release. It's basically a user-friendly abstraction over the Github releases API. It's written in Go so I took the liberty of cross-compiling it for OSX/linux/windows/FreeBSD, and you can download the binaries from the releases page, of course.

DISCLAIMER: I am the author.




回答5:


You can fetch a tarball of any tag like so:

https://github.com/visionmedia/express/tarball/2.5.4



回答6:


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 :)




回答7:


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



来源:https://stackoverflow.com/questions/9951629/how-do-i-post-a-release-on-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!