How do retention and storage billing work for artifacts and logs?
BeginnerConceptCaching, Artifacts, Runners & ARC
Answer
Default retention is 90 days for artifacts and logs, configurable at org or repo level (1 to 90 days for public repos, up to 400 days for private) and per upload with retention-days. Artifact storage counts against the account's included Packages/Actions storage and is billed beyond it. Set short retention (1 to 7 days) for intermediate build outputs and keep release assets in GitHub Releases or a registry instead.
- uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/
retention-days: 5
if-no-files-found: error
More on Caching, Artifacts, Runners & ARC
How does `actions/cache` match keys and restore keys?IntermediateWhich caches can a branch restore from?AdvancedWhat are the cache size limits and eviction rules?BeginnerWhen should you use setup-* built-in caching instead of `actions/cache`?BeginnerWhy cache the package manager's download cache rather than `node_modules`?AdvancedHow do `actions/cache/restore` and `actions/cache/save` help?Advanced