Actions/actions/upload-artifact
actions

Upload Artifact

actions/upload-artifact

View on GitHub

Upload artifacts from your workflow allowing you to share data between jobs

2,800stars
600forks
6.5M uses
Storagev4.3.1

About

This action uploads artifacts from your workflow allowing you to share data between jobs and store data once a workflow is complete. Artifacts are files or collections of files produced during a workflow run.

Workflow Example

name: CI
on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/upload-artifact@v4
        with:
          fetch-depth: 0
      
      - name: Run tests
        run: npm test

Inputs

repository

Repository name with owner

Default: ${{ github.repository }}

ref

The branch, tag or SHA to checkout

token

Personal access token (PAT)

Default: ${{ github.token }}

fetch-depth

Number of commits to fetch

Default: 1

Metadata

Language

TypeScript

Last Updated

1/12/2024

Latest Release

v4.3.1