Skip to main content
1

Create the workflow file

This writes .github/workflows/unch-index.yml.To scaffold into another repository:
2

Commit the workflow

3

Bind the local manifest

You can also bind directly to a workflow URL:
4

Push and verify

Push the commit and confirm that the workflow succeeds in the repository Actions tab.
5

Force sync if needed

After the first successful publish, unch search can auto-refresh from remote when a newer version exists.

Workflow inputs

The generated workflow supports manual workflow_dispatch inputs:
  • force_rebuild
  • skip_remote_restore
  • skip_publish
These are useful for bootstrap flows, debugging, and controlled republish runs.

Bootstrap flows

If you want to continue gracefully when no remote artifact exists yet:
With --allow-missing, a missing or incompatible remote index prints a notice and exits cleanly instead of failing the flow.

Schema upgrades

When a release changes indexing or storage compatibility:
  1. rerun the repository’s unch-index.yml workflow
  2. let CI republish a compatible index.db, manifest.json, and filehashes.db
  3. run unch remote sync or just search again locally
The generated workflow publishes index.db, manifest.json, and filehashes.db.That gives later restores both the active index and the warm file-hash cache.
Use unch remote sync --allow-missing during bootstrap or first-run CI flows.That way a missing artifact does not fail the entire flow before the first publish exists.
Rerun .github/workflows/unch-index.yml so the repository republishes state compatible with the upgraded binary.