Skip to content

Commit e9a3acd

Browse files
committed
[ci] Better caching via a new cache key in publish-ghpages
1 parent a958f2a commit e9a3acd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/publish-ghpages.yml

+13-1
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,23 @@ jobs:
1919
- uses: actions/checkout@v4
2020
with:
2121
fetch-depth: 0
22+
- name: Cache Sbt packages with different key
23+
uses: actions/cache@v4
24+
with:
25+
path: |
26+
**/*.sbt
27+
**/project/build.properties
28+
**/project/**.scala
29+
**/project/**.sbt
30+
key: sbt-site-${{ hashFiles('**/*.sbt,**/project/build.properties,**/project/**.scala,**/project/**.sbt') }}
31+
restore-keys: |
32+
sbt-site-
33+
setup-java-Linux-sbt-${{ hashFiles('**/*.sbt,**/project/build.properties,**/project/**.scala,**/project/**.sbt') }}
34+
setup-java-Linux-sbt-
2235
- uses: actions/setup-java@v4
2336
with:
2437
distribution: 'zulu'
2538
java-version: '17'
26-
cache: 'sbt'
2739
- name: Setup Pages
2840
uses: actions/configure-pages@v4
2941
- name: Build site

0 commit comments

Comments
 (0)