Files
DanConwayDev de0e33e9e4 ci: keep workflow support files beside their YAML
Move CI and release-only Nix expressions and scripts into
.ngit/nix/workflows. Keep the deployment module and its example under nix.
Update imports, the lockfile relative path, documentation and the
container workflow path filter without changing execution behavior.

Validation: the release CLI check evaluates after the move; all moved
script content is unchanged. Workflow interface and cache improvements
are deliberately separate commits.

Assisted-by: GPT-6
2026-10-17 23:04:43 +00:00

6 lines
335 B
Bash

[[ $NGIT_CI_TRIGGER == push ]] || { echo 'Crate publication requires a tag push' >&2; exit 1; }
CARGO_REGISTRY_TOKEN=$(cat "${NGIT_CI_SECRETS_DIR:?}/CARGO_REGISTRY_TOKEN")
: "${CARGO_REGISTRY_TOKEN:?The CARGO_REGISTRY_TOKEN secret is empty}"
export CARGO_REGISTRY_TOKEN
cargo publish --locked --registry crates-io --package ngit-grasp