[ADAM-518] Move distribution stage into a profile.

Resolves #518. Moves distribution stage into a profile. The profile is run during CI tests and during releases.