ACM doesn't charge you for publishing papers in their journals, conferences, and to end online in their digital library.
Though papers accepted through a conference, mostly require one of the authors registering for such conference; which seems fair to me as the effort to organize them is non-trivial.