Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to upload/deploy jar files in Github

Tags:

java

git

github

I've used Google code in the past and had the ability to upload runnable jar files for download, now I am using GitHub and understand it had a download tab where developers were able to upload files (i.e. a runnable jar file), unfortunately it is deprecated now.

For non developers to download the whole project as a zip file and compile it, is a bit complicated. Is there another/better way to deploy/upload a runnable jar files on GitHub for download?

like image 329
iFadi Avatar asked May 14 '13 15:05

iFadi


People also ask

Can I push jar files to Git?

jar is needed to be added using the command git diff , git will indicate if you need to add the files to your repository. Them use git add . and your files will be available for commit.


1 Answers

Since 2d July 2013, you now have a new way to "upload runnable jar files for download" , through a release.

Releases, a workflow for shipping software to end users.
Releases are first-class objects with changelogs and binary assets that present a full project history beyond Git artifacts. They're accessible from a repository's homepage:

homepage

  • Releases are accompanied by release notes and links to download the software or source code.
  • Following the conventions of many Git projects, releases are tied to Git tags. You can use an existing tag, or let releases create the tag when it's published.
  • You can also attach binary assets (such as compiled executables, minified scripts, documentation) to a release. Once published, the release details and assets are available to anyone that can view the repository.

release

That now replaces the old binary upload service, which was removed in December 2012.

like image 59
VonC Avatar answered Oct 02 '22 15:10

VonC