Deploying means publishing your built HTML at a real URL that anyone can visit. GitHub provides free hosting for this through a service called GitHub Pages. Thereβs a one-time setup step and then a single command does the rest.
Under Source, use the dropdown to select GitHub Actions. Youβll not need to configure a workflow by hand; the PreTeXt deploy command will handle that for you.
Watch the terminal. Several things happen in sequence: a build, a push to a special gh-pages branch, and a trigger of the GitHub Actions workflow that actually publishes the site.
The site itself may take another minute or two to actually go live even after the command finishes. You can check progress by going to your repository on github.com and clicking the Actions tab; a green checkmark means itβs up.
Two usual causes. First, give it another two or three minutes; the initial publish sometimes lags behind the deploy command. Second, go to Settings β Pages and confirm the source really is set to GitHub Actions. If it still says Deploy from a branch, change it, then run Deploy one more time.
If you get stuck: deploy command fails with a permissions error.
On your repository page, go to Settings β Actions β General, scroll to Workflow permissions, and make sure Read and write permissions is selected. Save. Return to the Codespace and run Deploy again.