Change "profile in use" in AddressableAssetSettings from script or in cloud build config ???

Hi. I Use cloud build and cloud content delivery for my multi platform Game. So I want each cloud build configuration select special profile for its build. but there is no any setting to change that in configs?

Can we write a build preprocess function to change profile in use automatically before build?

Answer here: https://forum.unity.com/threads/how-to-set-profile-during-build-time-programatically.674791/

AddressableAssetSettingsDefaultObject.Settings.activeProfileId = AddressableAssetSettingsDefaultObject.Settings.profileSettings.GetProfileId("production");