Interview Prep/CI/CD/GitHub Actions Failures

`Error: Unable to download artifact(s): Artifact not found for name: build`.

IntermediateTroubleshootingGitHub Actions Failures
Answer

Likely causes → Upload step skipped or failed; name mismatch; download in another workflow run; v3 vs v4 differences; artifact expired.

Diagnose → Check the upload step log and the run's Artifacts section; gh run view <id>.

Fix → Ensure needs: ordering, matching names, if-no-files-found: error on upload, and use run-id plus a token for cross-run downloads.

Prevent → Use unique artifact names per matrix element.

All CI/CD questions

More on GitHub Actions Failures