From the course: Learning GitHub Actions
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Using artifacts - GitHub Tutorial
From the course: Learning GitHub Actions
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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Use an action from the Marketplace4m 6s
-
(Locked)
Use an action from a repository2m 25s
-
(Locked)
Passing arguments to an action4m 6s
-
(Locked)
Using environment variables5m 10s
-
(Locked)
Using secrets4m 1s
-
(Locked)
Using artifacts4m 7s
-
(Locked)
Manage pull requests3m 30s
-
(Locked)
Challenge: Develop a workflow that creates an artifact57s
-
(Locked)
Solution: Develop a workflow that creates an artifact8m 6s
-
(Locked)
-
-
-