Downloading workflow artifacts

You can download archived artifacts before they automatically expire.

GitHub Actions ist verfügbar mit GitHub Free, GitHub Pro, GitHub Free für Organisationen, GitHub Team, GitHub Enterprise Cloud, und GitHub AE. GitHub Actions ist nicht verfügbar für private Repositorys, die im Besitz von Konten mit älteren Pro-Repository-Plänen sind. For more information, see "GitHub's products."

By default, GitHub stores build logs and artifacts for 90 days, and you can customize this retention period, depending on the type of repository. For more information, see "Configuring the retention period for GitHub Actions artifacts and logs in your repository."

Download artifacts with the GitHub UI

Read access to the repository is required to perform these steps.

  1. Navigiere in GitHub zur Hauptseite des Repository.

  2. Klicke unter Deinem Repository-Namen auf Actions (Aktionen). Registerkarte „Actions" (Aktionen) auf der Navigationsleiste des Haupt-Repository

  3. Klicke in der linken Seitenleiste auf den Workflow, den Du sehen willst. Workflow-Liste in der linken Seitenleiste

  4. From the list of workflow runs, click the name of the run you want to see. Name der Workflow-Ausführung

  5. Under Artifacts, click the artifact you want to download.

    Dropdown-Menü zum Herunterladen von Artefakten

Download artifacts with GitHub CLI

GitHub CLI will download each artifact into separate directories based on the artifact name. If only a single artifact is specified, it will be extracted into the current directory.

To download all artifacts generated by a workflow run, use the run download subcommand. Replace run-id with the ID of the run that you want to download artifacts from. If you don't specify a run-id, GitHub CLI returns an interactive menu for you to choose a recent run.

gh run download run-id

To download a specific artifact from a run, use the run download subcommand. Replace run-id with the ID of the run that you want to download artifacts from. Replace artifact-name with the name of the artifact that you want to download.

gh run download run-id -n artifact-name

You can specify more than one artifact.

gh run download run-id -n artifact-name-1 -n artifact-name-2

To download specific artifacts across all runs in a repository, use the run download subcommand.

gh run download -n artifact-name-1 -n artifact-name-2

Did this doc help you?Privacy policy

Help us make these docs great!

All GitHub docs are open source. See something that's wrong or unclear? Submit a pull request.

Make a contribution

Oder, learn how to contribute.