Deployments are manual via GitHub Actions:
-
Go to Actions > deploy-book > Run workflow (or use the CLI):
gh workflow run deploy-jupyter-book.yml --ref v2
-
The workflow builds the book and pushes the result to the
gh-pagesbranch. The site at dmol.pub updates automatically via GitHub Pages.
Because force_orphan is off, the gh-pages branch keeps full commit history. To roll back a bad deploy:
-
Find the last good commit on
gh-pages:git log origin/gh-pages --oneline
-
Reset
gh-pagesto that commit and force-push:git checkout gh-pages git reset --hard <good-commit-sha> git push --force origin gh-pages
-
The site will revert within a few minutes.
Package publishing is a separate workflow:
gh workflow run publish-package.yml --ref v2This builds and uploads the dmol-book package to PyPI using trusted publishing.