If you need to publish all pages, click the "Publish all pages" button. If you have already created a folder, you will see a pop-up window with two options: "Publish all" and "Only in this folder".
If you have pages that are not yet to be published (for example, drafts), move them into a separate folder that will not be published if you select "Only in this folder" when you publish all pages from the full list of pages (that is, outside of folders). In this case, only the pages outside the folder will be published. The pages inside the folder will not.