I think coming up with such workflow is considered personal preference.
It seems you are looking for a workflow for pushing changes made during development to a staging bundle where selected users in your studio can test things before pushing to production.
Key important concept to keep in mind is making releases.
When working with dev bundles you may have some local change in your local repo, and
- it’d be great if you can commit your changes in a dedicated branch so that you keep your changes saved.
- or maybe fork the addon you want to customize, commit and push your changes to it. but you may discuss forking with your studio because the fork will be public and opensource as the official repo is public. so your customization can be available for others.
- When finished with coding, committing your changes, you can change the addon version in the package.py file to be something like
1.0.0+yourstudio.1more info here. - then you may create a new tag in your clone so that you can quickly switch to that state of the code.
- Then finally, run
python create_package.pyto create a zip package and upload it to your server.
You may simplify this process based on your preference, but the main point is to differentiate between code in progress and the code that reached a dedicate milestone. and, to create a clean package for your studio to use.
Once you build and update your package, you can create a staging bundle and start experimenting/testing. If things go well, you can re-use this package for production.
Another important thing to keep in mind so that you don’t get confused when you create a bundle and find out that an addon has some studio or project overrides.
Let me quote from How are settings organized? | AYON Help Center.
Addon settings are stored for each addon version and variant (not per bundle), that’s why the same addon retains its production and staging values when added to other bundles marked as production or staging.
You may also automate process in your dev environment e.g. here’s my dev environment setup AYON-Development-Workbench.