GitHub Setup Guide¶
This repository is already configured for GitHub, GitHub Actions, GitHub Pages, and PyPI Trusted Publishing. Use this page as the maintenance checklist for repository settings.
Repository¶
Repository:
Recommended settings:
- Issues enabled
- Actions enabled
- Pages source set to GitHub Actions
- branch protection on
mainonce the release flow is stable
Branch Protection¶
For main, consider requiring:
- CI
- Publish distributions build job
- Docs build once documentation is ready to gate releases
- pull request review before merge
Avoid force pushes to main. Force-updating release tags should be reserved for cases where the tag workflow failed before publishing any artifact.
GitHub Pages¶
The docs workflow publishes the MkDocs site to:
To enable it:
- Go to Settings > Pages.
- Set Source to GitHub Actions.
- Push to
main. - Confirm the Docs workflow succeeds.
PyPI Trusted Publishing¶
PyPI publishing uses OpenID Connect through GitHub Actions. No long-lived PyPI token is required.
Configure the PyPI project with:
- owner:
chags1313 - repository:
monomech - workflow filename:
publish.yml - environment: blank, unless the workflow is changed to use one
Repository Health Files¶
The repository includes:
README.mdCONTRIBUTING.mdCODE_OF_CONDUCT.mdSECURITY.mdCHANGELOG.md.github/workflows/
Keep these files current as the package API and release process evolve.