Skip to content

Commit fc1d332

Browse files
fix: update caching logic for .clice in documentation generation workflow
1 parent eb93bc1 commit fc1d332

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/generate-docs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ jobs:
2525
locked: true
2626

2727
- name: Restore .clice cache
28-
id: restore-clice-cache
2928
uses: actions/cache/restore@v5
3029
with:
3130
path: .clice/
@@ -44,13 +43,6 @@ jobs:
4443
- name: Build
4544
run: pixi run cmake-build Debug
4645

47-
- name: Save .clice cache
48-
if: steps.restore-clice-cache.outputs.cache-hit != 'true'
49-
uses: actions/cache/save@v5
50-
with:
51-
path: .clice/
52-
key: ${{ steps.restore-clice-cache.outputs.cache-primary-key }}
53-
5446
- name: Save build directory cache
5547
if: steps.restore-build-cache.outputs.cache-hit != 'true'
5648
uses: actions/cache/save@v5
@@ -71,10 +63,19 @@ jobs:
7163
--log-level info \
7264
--model deepseek-chat
7365
66+
- name: Save .clice cache
67+
if: github.event_name == 'push'
68+
uses: actions/cache/save@v5
69+
with:
70+
path: .clice/
71+
key: ${{ steps.restore-clice-cache.outputs.cache-primary-key }}
72+
7473
- name: Package documentation
74+
if: github.event_name == 'push'
7575
run: zip -r clore-docs.zip generated
7676

7777
- name: Upload documentation artifact
78+
if: github.event_name == 'push'
7879
uses: actions/upload-artifact@v7
7980
with:
8081
name: clore-docs

0 commit comments

Comments
 (0)