To build your theme ready for the theme store, simply navigate to your repository in terminal and run the following command:
bin/compile
This will create a new dist
directory, inside it will have your theme as a zip file.
Note that you need Node.js installed to run this script successfully.