What benefit would you receive if you publish your code? Will that give you some privilege or earn you more money and/or more reputation?
If the answer to the above is no, and it will mostly cost you time and effort. Then don't publish.
If the answer to the above is yes, then consider the return on investment for publishing your code. If you earn more reputation/money/whatever if you publish than what you expenditure on doing the work of publishing, then publish, if not, then don't.
If the answer to the above is no, and it will mostly cost you time and effort. Then don't publish.
If the answer to the above is yes, then consider the return on investment for publishing your code. If you earn more reputation/money/whatever if you publish than what you expenditure on doing the work of publishing, then publish, if not, then don't.