Navigate:
Upload Artifact
~$UPLO0.2%

@actions/upload-artifact: GitHub Actions artifact uploader

Store workflow files as versioned zip artifacts.

LIVE RANKINGS • 10:20 AM • STEADY
OVERALL
#328
148
CLOUD & DEVOPS
#22
12
30 DAY RANKING TREND
ovr#328
·Cloud#22
STARS
3.9K
FORKS
1.0K
7D STARS
+9
7D FORKS
+4
See Repo:
Share:

Learn more about Upload Artifact

@actions/upload-artifact is a GitHub Actions action that uploads files and directories as artifacts during workflow execution. It is powered by the @actions/artifact package and integrates with GitHub's artifact storage system. The action supports wildcard patterns, multiple paths with exclusions, configurable compression levels, and retention periods. Artifacts are stored as immutable zip archives and become immediately available via the GitHub UI and REST API upon upload completion.

Upload Artifact

1

Immutable Artifact Archives

Uploaded artifacts are stored as read-only archives that cannot be modified by subsequent jobs. Prevents race conditions and accidental corruption when multiple workflow jobs interact with the same artifact namespace.

2

Immediate Artifact Availability

Artifacts receive unique IDs and appear in the GitHub UI and REST API instantly after upload completes. No need to wait for the entire workflow run to finish before accessing or downloading artifacts.

3

Configurable Compression Levels

Manually adjust compression settings to optimize for upload speed or storage efficiency. Enables fine-tuning based on artifact size, network conditions, and workflow performance requirements.


name: Upload Build Artifacts
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - run: npm run build
      - uses: actions/upload-artifact@v4
        with:
          name: build-output
          path: dist/


[ EXPLORE MORE ]

Related Repositories

Discover similar tools and frameworks used by developers