Skip to content

Commit f5d46de

Browse files
committed
fixup! fixup! [ci] Better caching via a new cache key in publish-ghpages
1 parent e3ab76e commit f5d46de

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/publish-ghpages.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22-
- name: Cache Sbt packages with different key
22+
- name: cache sbt packages
23+
# but with a different name than setup-java would use,
24+
# since webStage will pull some artifacts that the other tasks will not
25+
# and caches are immutable, apparently, rather than updatable
2326
uses: actions/cache@v4
2427
with:
2528
path: |
26-
**/*.sbt
27-
**/project/build.properties
28-
**/project/**.scala
29-
**/project/**.sbt
29+
~/.ivy2/cache
30+
~/.sbt
31+
~/.cache/coursier
32+
!~/.sbt/*.lock
33+
!~/**/ivydata-*.properties
3034
key: sbt-site-${{ hashFiles('**/*.sbt','**/project/build.properties','**/project/**.scala','**/project/**.sbt') }}
3135
restore-keys: |
3236
sbt-site-

0 commit comments

Comments
 (0)