Skip to content

Commit 1046093

Browse files
ersinkocclaude
andcommitted
ci: fix macOS artifact extraction - run cleanup before download
Move the cleanup step to run BEFORE artifact download instead of after, to properly clear existing files before tar extraction on macOS. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b8b095d commit 1046093

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

.github/workflows/ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -118,16 +118,16 @@ jobs:
118118
- name: Checkout
119119
uses: actions/checkout@v4
120120

121+
- name: Clear existing assets before extraction (macOS fix)
122+
if: runner.os == 'macOS'
123+
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
124+
121125
- name: Download frontend artifacts
122126
uses: actions/download-artifact@v8
123127
with:
124128
name: frontend-assets
125129
path: internal/webui/
126130

127-
- name: Clear existing assets before extraction (macOS fix)
128-
if: runner.os == 'macOS'
129-
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
130-
131131
- name: Setup Go
132132
uses: actions/setup-go@v6
133133
with:
@@ -203,16 +203,16 @@ jobs:
203203
- name: Checkout
204204
uses: actions/checkout@v4
205205

206+
- name: Clear existing assets before extraction (macOS fix)
207+
if: runner.os == 'macOS'
208+
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
209+
206210
- name: Download frontend artifacts
207211
uses: actions/download-artifact@v8
208212
with:
209213
name: frontend-assets
210214
path: internal/webui/
211215

212-
- name: Clear existing assets before extraction (macOS fix)
213-
if: runner.os == 'macOS'
214-
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
215-
216216
- name: Setup Go
217217
uses: actions/setup-go@v6
218218
with:
@@ -241,16 +241,16 @@ jobs:
241241
- name: Checkout
242242
uses: actions/checkout@v4
243243

244+
- name: Clear existing assets before extraction (macOS fix)
245+
if: runner.os == 'macOS'
246+
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
247+
244248
- name: Download frontend artifacts
245249
uses: actions/download-artifact@v8
246250
with:
247251
name: frontend-assets
248252
path: internal/webui/
249253

250-
- name: Clear existing assets before extraction (macOS fix)
251-
if: runner.os == 'macOS'
252-
run: rm -rf internal/webui/assets internal/webui/index.html internal/webui/favicon.svg 2>/dev/null || true
253-
254254
- name: Setup Go
255255
uses: actions/setup-go@v6
256256
with:

0 commit comments

Comments
 (0)