Interview Prep/GitHub Actions/Deployments, Environments & Releases

`gh release create v1.4.0 --verify-tag` fails with `tag v1.4.0 doesn't exist in the repo`.

BeginnerTroubleshootingDeployments, Environments & Releases
Answer

Likely causes → The workflow was dispatched manually with a version input but nobody pushed the tag, or the tag exists locally only.

Diagnose → git ls-remote --tags origin v1.4.0.

Fix → Push the tag, or drop --verify-tag and pass --target "$GITHUB_SHA" to create it (with the no-trigger caveat for GITHUB_TOKEN).

Prevent → Trigger releases from tag pushes, not from free-text version inputs.

All GitHub Actions questions Roadmap: GitHub Actions

More on Deployments, Environments & Releases