Skip to content

Commit 1b96d65

Browse files
committed
fix: uses cache and cache restore github action
1 parent 7b7c6a0 commit 1b96d65

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ jobs:
3030
with:
3131
path: ./tex
3232
key: tex
33-
save-always: true
3433

3534
export-latex-to-pdf:
3635
needs: compile-latex
@@ -46,12 +45,11 @@ jobs:
4645
run: docker build -t texlive-extended .
4746
working-directory: ./tex
4847

49-
- name: Cache LaTeX files
50-
uses: actions/cache@v4
48+
- name: Restore cached LaTeX files
49+
uses: actions/cache/restore@v4
5150
with:
5251
path: ./tex
5352
key: tex
54-
lookup-only: true
5553

5654
- name: Run Docker container
5755
run: |
@@ -72,7 +70,6 @@ jobs:
7270
with:
7371
path: ./static
7472
key: static
75-
save-always: true
7673

7774
build-site:
7875
needs: export-latex-to-pdf
@@ -97,12 +94,11 @@ jobs:
9794
run: npm install
9895
- run: ls -la node_modules
9996

100-
- name: Cache Static files
101-
uses: actions/cache@v4
97+
- name: Restore Cached Static files
98+
uses: actions/cache/restore@v4
10299
with:
103100
path: ./static
104101
key: static
105-
lookup-only: true
106102

107103
- name: build
108104
env:

0 commit comments

Comments
 (0)