Skip to content

Commit 5b058e9

Browse files
committed
Attempt to fix build artifact
1 parent e2919b4 commit 5b058e9

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ jobs:
3535
- name: Cache js file
3636
uses: actions/cache@v3
3737
with:
38-
path: web/WebStats-dist.js
39-
key: js
38+
path: |
39+
web/WebStats-dist.js
40+
web/WebStats-dist.js.map
41+
key: js-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
4042

4143
maven:
4244

@@ -58,8 +60,10 @@ jobs:
5860
- name: Get cached js file
5961
uses: actions/cache/restore@v3
6062
with:
61-
path: web/WebStats-dist.js
62-
key: js
63+
path: |
64+
web/WebStats-dist.js
65+
web/WebStats-dist.js.map
66+
key: js-${{ github.run_id }}-${{ github.run_number }}-${{ github.run_attempt }}
6367
fail-on-cache-miss: true
6468
- name: Copy js file to out directory and jar resources
6569
run: mkdir out && cp web/WebStats-dist.js out && cp web/WebStats-dist.js* src/main/resources/web

0 commit comments

Comments
 (0)