Moved source code uploading to the common file