Deploy artifacts first, then modules. This way, modules can depend on contents of artifacts.