You can create debs (debain packages) for your package by releasing it to the ROS build farm with bloom.
This means that your source code will be public, and the ROS build farm will download your source code, build binary packages, and make them available through apt on the ROS apt repository.
If you want to keep your source code private you'll need to run your own build server and host your own apt repository.
Originally posted by ahendrix with karma: 47576 on 2016-11-01
This answer was NOT ACCEPTED on the original site
Post score: 2
Original comments
Comment by Pototo on 2016-11-01:
Can I create the .deb s without putting it in github, just locally? Then send it to someone through email, or something. You know what I mean?
Comment by Akif on 2016-11-02:
@ahendrix, better answer than the accepted one since OP asks for deb packages installed from apt repos.
Comment by ahendrix on 2016-11-02:
@Pototo: bloom has a few assumptions about working with repositories on github, but you could just as easily use local git repositories on your machine and then build the deb locally.
Comment by Pototo on 2016-11-02:
I see. I'll try the local repositories