From the course: Learning GitHub Actions

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using artifacts

Using artifacts - GitHub Tutorial

From the course: Learning GitHub Actions

Start my 1-month free trial

Using artifacts

- [Instructor] It's often the case that you'll want to keep something after a workflow has been completed. This is known as an artifact. An artifact can be one file or a collection of files. Some examples are compiled binaries, archives like ZIP files or JAR files, test results from performance testing or code coverage, and log files or other output that might be useful for debugging. Artifacts can also be used to pass data between jobs in a workflow. Because each job runs in a fresh virtual environment, when the job completes that environment is deleted. Anything else you might want to share with another job would be gone. Let's take, for example, a workflow with two jobs. The second job has a dependency on a file created by the first job. To share the file, job 1 could create and upload the artifact. Job 2 would wait for job 1 to complete and then download and use the artifact. Artifacts can only be uploaded by a…

Contents