Homebrew content does not need to be shared to be used with others in your group. Any players who have joined a campaign with homebrew materials will be able to see and utilize it.
Since publishing is not a requirement to use your creations in a campaign, we advise not to publish. As once content is published you can no longer edit that published version nor can it be removed from the public listings.