GitHub Actions 1 · Languages, caching and artifacts
Cache files between runs
Cache any folder, keyed by a hash of a lock file.
- uses: actions/cache@v4
with:
path: ~/.cache
key: ${{ runner.os }}-cache-${{ hashFiles('**/lockfile') }}
Official GitHub Actions 1 documentation
More languages, caching and artifacts commands
- Set up Node.js with caching
- Set up Python with caching
- Upload a build artifact
- Download an artifact in another job
All languages, caching and artifacts commands · GitHub Actions 1 cheatsheet