Disable artifact replacement

Hello!
Is it possible to make the setting in such a way that the versions of the artifact would not be deployed if there is such a version already exists?
Thanks

Look at the “Deployment policy” option on hosted repositories.