Skip to main content

Workflow artifacts

Learn about storing and sharing data as artifacts of GitHub Actions workflows.

About workflow artifacts

An artifact is a file or collection of files produced during a workflow run. Artifacts allow you to persist data after a job has completed, and share that data with another job in the same workflow. For example, you can use artifacts to save your build and test output after a workflow run has ended.

GitHub provides two actions that you can use to upload and download build artifacts, upload-artifact and download-artifact on GitHub Enterprise Server.

Common artifacts include:

  • Log files and core dumps
  • Test results, failures, and screenshots
  • Binary or compressed files
  • Stress test performance output and code coverage results

아티팩트 및 종속성 캐싱 비교

아티팩트 및 캐싱은 GitHub에 파일을 저장할 수 있는 기능을 제공하지만 각 기능은 서로 다른 사용 사례를 제공하므로 서로 바꿔서 사용할 수 없습니다.

  • 패키지 관리 시스템의 빌드 종속성 등 작업 또는 워크플로 실행 간에 자주 변경되지 않는 파일을 다시 사용하려는 경우 캐싱을 사용합니다.
  • 빌드된 이진 파일 또는 빌드 로그와 같이 워크플로 실행이 종료된 후 볼 작업에서 생성된 파일을 저장하려는 경우 아티팩트를 사용합니다.

For more information on dependency caching, see Dependency caching reference.

삭제된 워크플로 실행의 아티팩트

워크플로 실행이 삭제되면 실행과 연결된 모든 아티팩트도 스토리지에서 삭제됩니다. GitHub Actions UI, REST API, GitHub CLI를 사용하여 워크플로 실행을 삭제할 수 있습니다. 워크플로 실행 삭제, 워크플로 실행 삭제, gh 실행 삭제를 참조하세요.