GitHub Actions artifacts share files between jobs and after a workflow
Answer: Workflow artifacts share data between jobs and store files once the workflow has finished. Use the upload-artifact action to upload a file, a directory, or a wildcard path. You can also exclude paths. A name is recommended; the default name is artifact. retention-days sets a per-artifact retention period and cannot exceed the repository, organization, or enterprise limit. actions/download-artifact downloads a previously uploaded artifact during a later job.
The actions/upload-artifact README describes the same upload action and its name and path inputs.
See also
Claims
- id: C1 claim: Artifacts share data between jobs in a workflow. source: S1 evidence: "Use artifacts to share data between jobs in a workflow"
- id: C2 claim: upload-artifact uploads the files you want to keep. source: S1 evidence: "You can use the upload-artifact action to upload artifacts."
- id: C3 claim: retention-days cannot exceed the configured retention limit. source: S1 evidence: "value cannot exceed the retention limit set by the"
- id: C4 claim: The action README documents the upload-artifact action. source: S2 evidence: "Please update your workflow to use v4 of the artifact actions."
Sources
- [S1] Store and share data with workflow artifacts. GitHub Docs. https://docs.github.com/en/actions/tutorials/store-and-share-data . License: CC-BY-4.0. Accessed 2026-11-16.
- [S2] upload-artifact README. actions/upload-artifact (GitHub). https://github.com/actions/upload-artifact/blob/main/README.md . License: MIT. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Store and share data with workflow artifacts, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE); actions/upload-artifact (GitHub), upload-artifact README, MIT (https://raw.githubusercontent.com/actions/upload-artifact/main/LICENSE). Copyright (c) 2018 GitHub, Inc. and contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: GitHub Docs, Store and share data with workflow artifacts, CC-BY-4.0 (https://raw.githubusercontent.com/github/docs/main/LICENSE); actions/upload-artifact (GitHub), upload-artifact README, MIT (https://raw.githubusercontent.com/actions/upload-artifact/main/LICENSE). Copyright (c) 2018 GitHub, Inc. and contributors.
Cite this
iinventedlight. 2026. "GitHub Actions artifacts share files between jobs and after a workflow." iinventedlight Library, iil:note:2n8v94c7, version of 2026-11-16. https://iinventedlight.com/library/notes/github-actions-artifacts/. License: CC-BY-4.0.
@misc{iil_note_2n8v94c7,
author = {{iinventedlight}},
title = {{GitHub Actions artifacts share files between jobs and after a workflow}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/github-actions-artifacts/},
note = {Permanent ID iil:note:2n8v94c7. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/github-actions-artifacts.md.