They are usually shared under the title of “preprint” or “draft” often, but not always, before the time of actual publishing.
Always seemed like a grey area to me. We didn’t really distribute the copy of the paper with the journal/conference’s name + copyright - though a perhaps a line under the title: “To be published in…”