It's one action at a time, like any other action. So they try to prepare a ship first with one worker.(using the dockyard, or some other action that prepares a ship). Then the captain will have to land on the space again in order to launch. If the captain can't prepare a ship, they try to launch a ship (using the city pier or other action).