You can't publish geoprocessing services to ArcGIS Online, you can only publish them to ArcGIS Server. The Extract Data analysis tool under Manage Data within ArcGIS Online could be an alternative, though:Extract Data:With this tool, you can select and download data for a specified area of interest. Layers that you select will be added to a zip file or layer package.