Skip to content

Commit 29474af

Browse files
committed
Fix stale cache issue in content-deploy workflow
Include source files in cache key to ensure rebuilds when code changes on main branch. The workflow runs from content branch, so it needs the fix here too.
1 parent 3768968 commit 29474af

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/content-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,9 @@ jobs:
4444
~/.cargo/registry/cache/
4545
~/.cargo/git/db/
4646
target/
47-
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
47+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock', 'src/**/*.rs', 'Cargo.toml') }}
48+
restore-keys: |
49+
${{ runner.os }}-cargo-
4850
4951
- name: Install Typst CLI
5052
uses: baptiste0928/cargo-install@v3

0 commit comments

Comments
 (0)