mirror of
https://relay.ngit.dev/npub15qydau2hjma6ngxkl2cyar74wzyjshvl65za5k5rl69264ar2exs5cyejr/ngit-grasp.git
synced 2026-10-30 11:07:33 +00:00
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
6 lines
335 B
Bash
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
|