A built $mol app is a folder of static files. There is no server to run, no Node process to keep alive, and no adapter to pick: whatever hosts a folder can host the app.
The build writes everything into the module's -/ folder:1my/hello/-/2├── index.htmlrewrittenforthedeployedpath3├── web.jsthewholeapp,onefile4├── web.css5├── web.locale=en.jsononeperlanguage6├── manifest.json7└── … anythinga`deploy`directivecopiedinThat folder is the site. Serve it from any static host and the app runs.Everything else in my/hello/ is source, and -/ is generated: the workspace .gitignore ignores -*, so the build output never lands in the project's own history. It reaches the web from the deploy branch instead.
The scaffolder writes the workflow, so a new project publishes on push:1npxcreate-view-tree-lspmy/hello2gitpush.github/workflows/deploy.yml builds the module and pushes my/hello/-/ to the gh-pages branch. GitHub serves that branch once Settings → Pages → Source is Deploy from a branch with gh-pages selected, which is what a repository with a gh-pages branch defaults to. If the URL 404s, that setting is the first thing to check.The site then lives at https://<user>.github.io/<repo>/.
Two actions carry it, and both take a couple of inputs:1-uses:hyoo-ru/mam_build@master22with:3package:"my/hello"# the folder to build, workspace-relative4modules:"app"# which modules inside it to build56-uses:hyoo-ru/gh-deploy@v4.4.17if:github.ref=='refs/heads/main'8with:9folder:"my/hello/app/-"mam_build clones the MAM workspace around your package, resolves the $name tokens in your code into the repositories that hold them, and builds. It needs no lockfile and no npminstall step: the registry in .meta.tree is the dependency list, as Project structure describes.gh-deploy commits the built folder to gh-pages. target-folder puts it in a subfolder instead of the root, which is how a branch preview works:1-name:Deployfeaturebranch2if:startsWith(github.ref,'refs/heads/feature/')3uses:hyoo-ru/gh-deploy@v4.4.14with:5folder:"my/hello/app/-"6target-folder:${{github.ref_name}}Edit this page on GitHubWas this helpful?YesNoPreviousTestingNextTroubleshootingOn this pageWhat you deployThe short versionWhat the workflow actually doesOne file the deploy needsFiles that have to sit at the site rootDeep links on a static hostCheck before you pushBeyond GitHub PagesType to search the documentation.