Don't feel bad for publishing your code. A lot of people say "just share the prompt" but that assumes that the users have unlimited tokens to throw at replicating random one-off projects, which isn't always the case.