How to migrate the source code package to other platforms for deployment, such as; rpm/tar.gz

How to migrate the source code package to other platforms for deployment, such as; rpm/tar.gz。I can’t find it in the official documentation