Skip to main content

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​

#SettingWhere in GitHubRequired for
1Actions enabledSettings → Actions → Generalall workflows
2Workflow permissionsSettings → Actions → Generalrelease-please Release PRs and tags
3GitHub Pages sourceSettings → PagesDocusaurus docs deploy
4Branch protectionSettings → Branches or Rules → RulesetsPR review and CI/CD pipeline gate
5Merge settingsSettings → General → Pull Requestsclean release-please changelog parsing
6Workflow 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

OptionValue
Actions permissionsAllow all actions and reusable workflows, unless your org restricts this
Workflow permissionsConfigure 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

OptionValue
Workflow permissionsRead and write permissions
Allow GitHub Actions to create and approve pull requestsEnabled

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:

WorkflowJob permissions
release-please.ymlcontents: write, pull-requests: write, issues: write (Release PRs, tag, and asset publish on merge)
release.ymlcontents: write (publish job; manual tag push or workflow_dispatch repair)
docs.ymlcontents: read, pages: write, id-token: write
ci.ymlDefault GITHUB_TOKEN (read)

Direct link (replace owner/repo): https://github.com/YOUR_ORG/YOUR_REPO/settings/actions


GitHub Pages​

Path: Repository → Settings → Pages

OptionValue
Build and deployment → SourceGitHub 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

RuleSettingWhy
Require a pull request before mergingEnabledKeeps main stable and reviewable
Required status checksDagger CIRuns linting, artifact export verification, and tests for CAD/code changes
Optional docs checkbuild from Documentation PR checkUseful when protecting docs-heavy repos
Require branches to be up to date before mergingRecommendedAvoids merging stale green PRs
Require conversation resolutionRecommendedKeeps review feedback explicit
Require linear historyOptionalPairs well with squash-only merge
Restrict who can push to matching branchesOptionalPrevents direct pushes to main
Allow force pushesDisabledProtects release history
Allow deletionsDisabledProtects 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

OptionValue
Allow squash mergingEnabled
Default merge methodSquash
Allow merge commitsDisabled, recommended
Allow rebase mergingOptional

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.

WorkflowTriggerPurpose
ci.ymlPR + push to main (path filters)Dagger check: lint, artifact smoke, pytest
release-please.ymlPush to mainOpen/update Release PR; on merged chore: release …, tag + export/upload STL/PNG
release-assets.ymlworkflow_callShared export + upload job used by release-please and release
release.ymlPush tag v*.*.* or workflow_dispatchManual tag fallback or repair: quality gate + release assets
docs.ymlPush to main (website/**)Build + deploy Docusaurus to Pages
docs-pr.ymlPR 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:

FileRole
release-please-config.jsonSemver and changelog rules
.release-please-manifest.jsonCurrent version pointer, reset by just init

Verify the setup​

After configuration:

  1. Push a docs change to main or merge a docs PR. Confirm Deploy documentation succeeds and the Pages site loads.
  2. Open a PR that touches cad/ or tests/. Confirm Dagger CI runs.
  3. Merge with a feat: or fix: squash title. Confirm release-please opens or updates a Release PR.
  4. Merge the Release PR with the default chore: release X.Y.Z squash title. Confirm a GitHub Release appears with STL/PNG assets.
  5. Re-check Settings → Actions → General if release-please cannot create a PR or tag.

Troubleshooting​

SymptomLikely fix
release-please does not open Release PRWorkflow permissions (read/write + allow PRs) — details
Release PR merge does not create GitHub ReleaseSquash title must be chore: release X.Y.Z — details
Release exists but no STL/PNGMissing release assets or workflow_dispatch on Release workflow
Docs site 404Pages source must be GitHub Actions; wait for first docs.yml deploy
Cannot merge PR — missing checkAdd Dagger CI to branch protection; or push a commit that triggers ci.yml paths
Wrong docs URLFix [github] repo and [pages] url in template.repo.toml, then just init or just template-apply
Actions tab is emptyEnable Actions for the repository or check org policy
release-please does not open a Release PRSet workflow permissions to read/write and enable Action-created PRs
Docs site is 404Set Pages source to GitHub Actions and wait for the first docs deploy
Branch protection cannot find Dagger CIRun a PR that touches cad/ or tests/, then add the check after it appears
Cannot merge because a required check is missingCheck the branch protection rule against ci.yml path filters
Wrong docs URLFix template.repo.toml, then run just template-apply
Release PR merge does not publish assetsKeep the squash title as chore: release X.Y.Z; then check the tag-triggered release.yml run