Skip to content

Commit

Permalink
fix: cache properly
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Feb 17, 2025
1 parent 4e29d12 commit fd6358a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,17 @@ jobs:
path: ./demo
sparse-checkout: |
class.patch
- name: Compute theme ref
id: theme-ref
run: echo "THEME_REF=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
- name: Apply patch
run: git apply ./demo/class.patch
- name: Cache build
id: cache-build
uses: actions/cache@v4
with:
path: ./.deploy/book
key: ${{ runner.os }}-${{ hashFiles('**/*') }}
key: ${{ runner.os }}-${{ steps.theme-ref.outputs.THEME_REF }}-${{ github.ref }}
- uses: actions/setup-node@v4
if: steps.cache-build.outputs.cache-hit != 'true'
with:
Expand Down

0 comments on commit fd6358a

Please sign in to comment.