CICD-091 · Upload a build artifact
Encyclopedia · Artifact handoffs · All snippets
Previous · CICD-090 · Next · CICD-092
1. Where it fits
- Placement Under the producing job's
steps, after the wheel build. - Prerequisites actions runner, trusted producers and files actually generated by tests.
- Platforms github-actions.
2. Copy the snippet
yaml
uses: actions/upload-artifact@v4
with:
name: package
path: dist/*.whl
if-no-files-found: error3. How it works
Upload reads matched local files into a named run artifact. The if-no-files-found setting turns an empty match into a clear producer failure.
4. Verify the result
Check the artifact name and file in the run. Missing outputs must fail.
Validation syntax-validated (YAML parse). Status definitions.