How to build addressables differently based on environment (debug or production)?

Let’s say I want to setup a Group to be uploaded to Google Play Asset Delivery.
For development builds I would probably want the group to be built locally, and for production to be part of Asset Delivery. Alternatively for iOS I would also want a custom way to build it.
What would be the best way to achieve that, with Profiles?