Self-promotion only becomes a problem here when it's repetitive, and especially if the thing being promoted is out of context. Otherwise it can fairly be described as sharing one's own relevant work—obviously a good and on-topic thing for Hacker News!