From the sandbox, select Extension Management. Then from here you can select your extension and export it.
However, to publish an extension in a production tenant, you can take the .app file developed with Visual Studio Code and manually load it from the Extension Management page.