GitHub Actions "No files were found with the provided path"
upload-artifact resolved its path against the workspace and found zero matching files, so it warns (or errors with if-no-files-found: error) and uploads nothing, usually a wrong or premature path.
What this error means
The upload step warns "No files were found with the provided path: <path>. No artifacts will be uploaded." Downstream downloads then find nothing.
github-actions
Warning: No files were found with the provided path: dist/. No artifacts will be uploaded.Common causes
Build output not where expected
The build wrote to a different directory than the upload path, or the build step failed before producing output.
Wrong working directory or glob
The path is relative to the wrong directory, or the glob does not match the actual filenames.
How to fix it
Point the path at real output
- List the directory before upload to confirm files exist.
- Make the path relative to the correct working directory.
- Set if-no-files-found: error to fail fast on an empty match.
.github/workflows/ci.yml
- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/**
if-no-files-found: errorHow to prevent it
- Verify build output exists before uploading.
- Use if-no-files-found: error to catch empty uploads.
- Keep upload paths in sync with build output dirs.
Related guides
GitHub Actions "Failed to download artifact" / artifact not foundFix GitHub Actions "Failed to download artifact" - download-artifact could not find an artifact, usually a na…
GitHub Actions download-artifact "Unable to find any artifacts"Fix GitHub Actions download-artifact "Unable to find any artifacts for the associated workflow" when no artif…
GitHub Actions cache "tar: ... Cannot open: No such file or directory"Fix GitHub Actions cache "tar: <path>: Cannot open: No such file or directory" - the configured cache path do…