Skip to content
Apothem
Perintah pipeline

/github-deploy-fresh

Reference for the /github-deploy-fresh command: invocation, arguments, inputs and outputs.

Use when a GitHub repository needs one clean first release on origin/main: a single v0.1.0 release commit, green workflow cards, a first-version changelog, and no residual runs, branches, tags, releases or history. Builds on freshify. Runs only when the user invokes it; every destructive step is confirmed.

Invocation

/github-deploy-fresh [path/to/repo/] [--purge-runs] [--rewrite-history] [--recreate-repo] [--strict]

The definition sets disable-model-invocation: true, so a harness that honors that key starts this command only when you type it.

Pipeline position

The GitHub deployment pass that follows the /freshify agnostic freshening core and precedes the next-release cycle (/github-deploy-next). The inherited freshening is the substrate; this command owns only the GitHub-specific deployment contract.

Inputs

The /freshify-freshened working tree; the origin remote and its main branch; the repository's GitHub Actions workflow set and run history; the GitHub Releases and Packages state; the GitHub Pages build history; the environment and deployment records; the branch and tag set; the pull-request and issue state; the CHANGELOG.md; and the version declaration in the host's manifest.

ArgumentTypeRequiredDescription
path/to/repo/PathYesRoot directory of the target repository. MUST carry a root manifest, the host's ratified ignore manifest, and an origin remote pointing at the GitHub repository so the deployment surface resolves. The command refuses execution when no deployment surface resolves.
--purge-runsFlagNoPre-authorize the destructive purge of GitHub Actions run logs, workflow-run history, and failed-run records. Without the flag, the run sweep reports the purge targets and routes a per-action confirmation before any deletion; with it, the purge proceeds while still recording each run id in the report.
--rewrite-historyFlagNoPre-authorize the destructive git-history rewrite that collapses the repository to the single release: <repo-name> v0.1.0 commit. Without the flag, the history sweep reports the rewrite scope and routes a confirmation; the rewrite never proceeds on origin/main without explicit operator selection.
--recreate-repoFlagNoOpt into the explicit MAY capability that deletes the GitHub repository and recreates it with all current metadata to guarantee full freshness. Default-off; even with the flag the delete-and-recreate routes a per-action confirmation, captures the current metadata first, and refuses to proceed without explicit operator selection.
--strictFlagNoPromote every advisory deployment finding to blocking. Under --strict, the deployment is complete only when zero residual GitHub traces remain, every workflow card is green, and every applicable score (OpenSSF Scorecard) sits at its maximal value.

Outputs

The single templated release: <repo-name> v0.1.0 commit on origin/main (with sibling release: <sub-package> v0.1.0 lines for monorepos); one first-version GitHub Release tagged v0.1.0; the curated first-version CHANGELOG.md entry per Keep-a-Changelog; strictly-green-and-maximal-score workflow cards; and a deployment report enumerating every inherited /freshify pass, every GitHub-trace removal, every confirmation outcome, the per-workflow green/score verdict, and the per-axis attestation against the seven-axes taxonomy.

Next step

Invoke /github-deploy-next to deploy the subsequent release in turn — merging the next-cycle pull requests, resolving the next-cycle issues, and tagging the next version — once /github-deploy-fresh has landed the single fresh first-version release on origin/main.

Source

Generated from src/apothem/commands/github-deploy-fresh.md, the command definition every harness installs.

On this page