Interview Prep/CI/CD/GitHub Actions

How do artifacts work in GitHub Actions?

BeginnerConceptGitHub Actions
Answer

actions/upload-artifact stores files from a job under the workflow run; actions/download-artifact retrieves them in a later job or lets users download them from the UI. Default retention is 90 days (configurable with retention-days). With v4, artifact names must be unique per run.

- uses: actions/upload-artifact@v4
  with:
    name: app-dist
    path: dist/
    retention-days: 7
All CI/CD questions

More on GitHub Actions