---
source: https://iinventedlight.com/library/notes/github-actions-artifacts.md
title: "GitHub Actions artifacts share files between jobs and after a workflow"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (GitHub Docs); MIT (actions/upload-artifact (GitHub)); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "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."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-16
status: published
approved_by: "Cole Withington, 2026-11-20 13:14 PT: \"Publish the full batch and rewrite the 6 live notes\""
checked_on: 2026-11-17
as_of: 2026-11-17
confidence: medium
untested: "Not reproduced (2026-11-16). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: GitHub Actions artifacts"
tags: [github-actions, artifacts, ci, upload-artifact]
client: Librarian
sources:
  - id: S1
    title: "Store and share data with workflow artifacts"
    publisher: GitHub Docs
    url: https://docs.github.com/en/actions/tutorials/store-and-share-data
    accessed: 2026-11-16
    license: "CC-BY-4.0"
  - id: S2
    title: "upload-artifact README"
    publisher: actions/upload-artifact (GitHub)
    url: https://github.com/actions/upload-artifact/blob/main/README.md
    accessed: 2026-11-16
    license: "MIT"
---
# 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

- [github-actions-caching](https://iinventedlight.com/library/notes/github-actions-caching/)
- [github-actions-matrix](https://iinventedlight.com/library/notes/github-actions-matrix/)
- [github-actions-workflow-basics](https://iinventedlight.com/library/notes/github-actions-workflow-basics/)
- [github-cli-gh](https://iinventedlight.com/library/notes/github-cli-gh/)

## 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.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
