Deployment Flow
A GitHub Actions job is configured to deploy the site after every push to the main branch.
Suggested flow
- Write your Markdown files and test the generated site locally.
- Use
mdbook serveto preview the site; it liveāreloads the page so changes appear immediately.
- Use
- When you are satisfied with your changes, push them to the main branch.
- The GitHub Actions workflow will start automatically. After a few minutes, the site will be deployed to GitHub Pages and publicly available.
Note: It is recommended to work on a separate branch for ongoing edits and keep main as stable as possible. See About branches for more details.
Manual deployment
Even though the workflow is designed to deploy automatically, there may be cases where you want to trigger a deployment manually.
- Go to the
Actionstab in your repository. - Select the workflow named
Deploy mdBook site to Pagesand clickRun workflow. - See Manually running a workflow for more details.
Note: For usage and billing information, see GitHub Actions billing.