One time setup¶
Info
These steps only need to be completed once after the project is first created.
GitHub repository¶
- Allow merge commits
- Allow squash merging
- Allow rebase merging
- Automatically delete head branches
Settings → Branches → Add branch protection rule
for the Default branch (main):
- Restrict deletions
- Require a pull request before merging
- Block force pushes
Renovate¶
Ensure the Renovate app is installed on your account, then
enable it for smkent/copier-python.
PyPI publishing¶
This project uses trusted publishing so no API tokens need to be stored as secrets.
- On PyPI, add a (pending) trusted publisher in your
Trusted Publisher Management settings:
- Publisher: GitHub Actions
- Owner:
smkent - Repository:
copier-python - Workflow:
release.yaml - Environment:
pypi
- Create the
pypienvironment in the GitHub repository: Settings → Environments → New environment →pypi - Publish a release by pushing a tag:
git tag v0.1.0 # or your desired first version number git push --tags
GitHub Pages¶
Settings → Pages → Source → GitHub Actions