There is no general rule. Open-access publications can be uploaded immediately. Some journals allow uploads, but not of the final (published) version. Some journals do not allow uploads at all. You should check the rules of the journal in which your publication appeared or was accepted for publication. See also https://explore.researchgate.net/display/support/Copyright for considerations by RG.
Ideally making the research open in public domain or offering open access is as per the access terms. Refer: https://www.igi-global.com/newsroom/archive/guide-understanding-colors-open-access/4925/
But the fair use policy of libraries applies to us as well! We can share our research for academic and research purposes.