It's all right here:
https://www.androidpolice.com/how-to-install-one-ui-5-beta/
No data is lost on the upgrade, just as with any stable Android update, but, if you do decide to roll back to Android 12, it will reset your phone.
@vvrrare
If you use any GoodLock modules, some have not been...