upload-artifact action

The official action that uploads files from a job to artifact storage under a name, so later jobs or people can download them.

In more detail

Its two key inputs are name and path, where the path can be a file, a folder or a glob pattern. The optional retention-days input shortens how long the artifact is kept.

Example

- uses: actions/upload-artifact@v5
  with:
    name: app-package
    path: dist/

Related terms

Taught in

References