Set up GitHub for your repository
This page is only about GitHub.com settings for your generated repository. It assumes you already created the repo and ran just init from Create and initialize your repository.
These settings live outside git. The template can provide workflows, docs, and scripts, but it cannot enable Actions, set Pages to GitHub Actions, or protect your main branch for you.
After this page, continue to Releases to publish generated STL/PNG assets through the CI/CD pipeline.
Setup checklist
| # | Setting | Where in GitHub | Required for |
|---|---|---|---|
| 1 | Actions enabled | Settings → Actions → General | all workflows |
| 2 | Workflow permissions | Settings → Actions → General | release-please Release PRs and tags |
| 3 | GitHub Pages source | Settings → Pages | Docusaurus docs deploy |
| 4 | Branch protection | Settings → Branches or Rules → Rulesets | PR review and CI/CD pipeline gate |
| 5 | Merge settings | Settings → General → Pull Requests | clean release-please changelog parsing |
| 6 | Workflow inventory | .github/workflows/ | know what automation is already committed |
Optional: GitHub CLI authentication
Repository settings still happen on GitHub.com, but the Dev Container also includes GitHub CLI (gh) for issue, PR, and release inspection workflows. Codespaces may already be authenticated. Local Dev Container users should run gh auth login once before using terminal-based GitHub commands.
Keep the command reference in one place: Dev container → GitHub CLI. For releases, use gh to inspect only; normal publishing goes through release-please and the release workflow.
Enable GitHub Actions
Path: Repository → Settings → Actions → General
| Option | Value |
|---|---|
| Actions permissions | Allow all actions and reusable workflows, unless your org restricts this |
| Workflow permissions | Configure in the next section |
New template repos and forks can inherit org policies that restrict Actions. If the Actions tab shows no runs after a push, check this page first.
Direct link pattern:
https://github.com/YOUR_ORG/YOUR_REPO/settings/actions
Actions workflow permissions
Path: Repository → Settings → Actions → General → Workflow permissions
| Option | Value |
|---|---|
| Workflow permissions | Read and write permissions |
| Allow GitHub Actions to create and approve pull requests | Enabled |
Why this matters
release-please needs to open Release PRs, update release branches, tag releases, and hand off generated release assets. Without these repo-level permissions, the workflow can build fine but fail when it tries to create a PR, update labels, or publish a release.
The workflows also declare job-level permissions in git:
| Workflow | Job permissions |
|---|---|
release-please.yml | contents: write, pull-requests: write, issues: write (Release PRs, tag, and asset publish on merge) |
release.yml | contents: write (publish job; manual tag push or workflow_dispatch repair) |
docs.yml | contents: read, pages: write, id-token: write |
ci.yml | Default GITHUB_TOKEN (read) |
Direct link (replace owner/repo): https://github.com/YOUR_ORG/YOUR_REPO/settings/actions
GitHub Pages
Path: Repository → Settings → Pages
| Option | Value |
|---|---|
| Build and deployment → Source | GitHub Actions |
Do not use Deploy from a branch or a gh-pages branch. The docs site is built by docs.yml and deployed with actions/deploy-pages.
For a project site, the URL is usually:
https://YOUR_ORG.github.io/YOUR_REPO/
The repo segment comes from [github] repo in template.repo.toml, which is applied by just init. If the docs URL is wrong, fix the template identity in Create and initialize your repository, then run just template-apply.
The deploy job uses the github-pages environment. On first deploy, GitHub may ask you to approve environment creation. No environment secrets are required for a public template repo.
Docs deploy on push to main when website/** or .github/workflows/docs.yml changes. Pull requests run docs-pr.yml, which builds the docs without deploying them.
Direct link pattern:
https://github.com/YOUR_ORG/YOUR_REPO/settings/pages
Branch protection
Path: Repository → Settings → Branches → Branch protection rules
Some orgs use Rules → Rulesets instead. The goal is the same: protect main and require the checks that prove CAD changes still build.
Apply to branch: main
| Rule | Setting | Why |
|---|---|---|
| Require a pull request before merging | Enabled | Keeps main stable and reviewable |
| Required status checks | Dagger CI | Runs linting, artifact export verification, and tests for CAD/code changes |
| Optional docs check | build from Documentation PR check | Useful when protecting docs-heavy repos |
| Require branches to be up to date before merging | Recommended | Avoids merging stale green PRs |
| Require conversation resolution | Recommended | Keeps review feedback explicit |
| Require linear history | Optional | Pairs well with squash-only merge |
| Restrict who can push to matching branches | Optional | Prevents direct pushes to main |
| Allow force pushes | Disabled | Protects release history |
| Allow deletions | Disabled | Protects main |
GitHub only offers a status check after that check has run at least once. If Dagger CI is missing from the dropdown, open a small PR that touches cad/ or tests/, wait for the CI/CD pipeline to run, then return to branch protection.
ci.yml is path-filtered. It runs for changes under cad/**, tests/**, ci/**, .github/workflows/**, pyproject.toml, uv.lock, and .makerrepo/**. Docs-only PRs may not run Dagger CI; that is intentional.
Direct link pattern:
https://github.com/YOUR_ORG/YOUR_REPO/settings/branches
Merge settings
Path: Repository → Settings → General → Pull Requests
| Option | Value |
|---|---|
| Allow squash merging | Enabled |
| Default merge method | Squash |
| Allow merge commits | Disabled, recommended |
| Allow rebase merging | Optional |
release-please reads the commit subject that lands on main. Squash titles like feat(bracket): add mounting tabs produce clean changelog entries and semver bumps. Merge commits make release notes noisy and harder to predict.
Release PRs use the title pattern chore: release X.Y.Z. Do not rewrite that squash title when merging a Release PR.
Workflow inventory
These workflows are already committed by the template. GitHub settings decide whether they are allowed to run and publish.
| Workflow | Trigger | Purpose |
|---|---|---|
ci.yml | PR + push to main (path filters) | Dagger check: lint, artifact smoke, pytest |
release-please.yml | Push to main | Open/update Release PR; on merged chore: release …, tag + export/upload STL/PNG |
release-assets.yml | workflow_call | Shared export + upload job used by release-please and release |
release.yml | Push tag v*.*.* or workflow_dispatch | Manual tag fallback or repair: quality gate + release assets |
docs.yml | Push to main (website/**) | Build + deploy Docusaurus to Pages |
docs-pr.yml | PR to main (website/**) | Verify docs build |
No repository secrets are required for the default workflows. They use GitHub's GITHUB_TOKEN and the repository source.
Release automation config lives in git:
| File | Role |
|---|---|
release-please-config.json | Semver and changelog rules |
.release-please-manifest.json | Current version pointer, reset by just init |
Verify the setup
After configuration:
- Push a docs change to
mainor merge a docs PR. Confirm Deploy documentation succeeds and the Pages site loads. - Open a PR that touches
cad/ortests/. ConfirmDagger CIruns. - Merge with a
feat:orfix:squash title. Confirm release-please opens or updates a Release PR. - Merge the Release PR with the default
chore: release X.Y.Zsquash title. Confirm a GitHub Release appears with STL/PNG assets. - Re-check Settings → Actions → General if release-please cannot create a PR or tag.
Troubleshooting
| Symptom | Likely fix |
|---|---|
| release-please does not open Release PR | Workflow permissions (read/write + allow PRs) — details |
| Release PR merge does not create GitHub Release | Squash title must be chore: release X.Y.Z — details |
| Release exists but no STL/PNG | Missing release assets or workflow_dispatch on Release workflow |
| Docs site 404 | Pages source must be GitHub Actions; wait for first docs.yml deploy |
| Cannot merge PR — missing check | Add Dagger CI to branch protection; or push a commit that triggers ci.yml paths |
| Wrong docs URL | Fix [github] repo and [pages] url in template.repo.toml, then just init or just template-apply |
| Actions tab is empty | Enable Actions for the repository or check org policy |
| release-please does not open a Release PR | Set workflow permissions to read/write and enable Action-created PRs |
| Docs site is 404 | Set Pages source to GitHub Actions and wait for the first docs deploy |
Branch protection cannot find Dagger CI | Run a PR that touches cad/ or tests/, then add the check after it appears |
| Cannot merge because a required check is missing | Check the branch protection rule against ci.yml path filters |
| Wrong docs URL | Fix template.repo.toml, then run just template-apply |
| Release PR merge does not publish assets | Keep the squash title as chore: release X.Y.Z; then check the tag-triggered release.yml run |
Related docs
- Create and initialize your repository — Use this template,
template.repo.toml, andjust init - Releases — first release and day-to-day versioning
- Releases workflow — deeper reference (Conventional Commits, dry-run, manual tags)
- Release Please troubleshooting — missing assets, stale labels, workflow recovery
- CI/CD pipeline and Dagger
- Documentation site (local:
just docs-build)