Skip to content

Commit 5a3118b

Browse files
author
SonicBotMan
committed
fix: correct YAML indentation for all steps
Problem: - All step names (- name:) had 6 spaces indentation - Should be 8 spaces (2 for job + 2 for steps + 4 for step) - This caused GitHub Actions to fail to parse the workflow Solution: - Added 2 spaces to all '- name:' lines - Added 2 spaces to all step attributes (uses, with, run, shell) - Verified all indentations are now correct This should fix the 'Jobs 总数: 0' issue.
1 parent 4380b2e commit 5a3118b

1 file changed

Lines changed: 89 additions & 89 deletions

File tree

.github/workflows/build-dual-release.yml

Lines changed: 89 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,18 @@ jobs:
2020
timeout-minutes: 90
2121

2222
steps:
23-
- name: Checkout code
24-
uses: actions/checkout@v4
25-
26-
- name: Create directory structure
27-
shell: bash
28-
run: |
29-
mkdir -p dist/OpenClaw-Portable-v6.0.0-windows-offline/{node,openclaw-pkg,llm/bin,llm/models,config,data,workspace,temp}
30-
31-
- name: Download model from GitHub Release
32-
shell: bash
33-
run: |
34-
echo "=========================================="
23+
- name: Checkout code
24+
uses: actions/checkout@v4
25+
26+
- name: Create directory structure
27+
shell: bash
28+
run: |
29+
mkdir -p dist/OpenClaw-Portable-v6.0.0-windows-offline/{node,openclaw-pkg,llm/bin,llm/models,config,data,workspace,temp}
30+
31+
- name: Download model from GitHub Release
32+
shell: bash
33+
run: |
34+
echo "=========================================="
3535
echo " Downloading Qwen2.5-1.5B Model (1066MB)"
3636
echo "=========================================="
3737

@@ -61,10 +61,10 @@ jobs:
6161
ls -lh qwen2.5-1.5b-instruct-q4_k_m.gguf
6262
echo "✅ Model downloaded and merged"
6363

64-
- name: Download Node.js
65-
shell: bash
66-
run: |
67-
echo "=========================================="
64+
- name: Download Node.js
65+
shell: bash
66+
run: |
67+
echo "=========================================="
6868
echo " Downloading Node.js 22.16.0"
6969
echo "=========================================="
7070

@@ -78,10 +78,10 @@ jobs:
7878

7979
echo "✅ Node.js downloaded"
8080

81-
- name: Install OpenClaw
82-
shell: bash
83-
run: |
84-
echo "=========================================="
81+
- name: Install OpenClaw
82+
shell: bash
83+
run: |
84+
echo "=========================================="
8585
echo " Installing OpenClaw"
8686
echo "=========================================="
8787

@@ -94,10 +94,10 @@ jobs:
9494

9595
echo "✅ OpenClaw installed"
9696

97-
- name: Download llama.cpp
98-
shell: bash
99-
run: |
100-
echo "=========================================="
97+
- name: Download llama.cpp
98+
shell: bash
99+
run: |
100+
echo "=========================================="
101101
echo " Downloading llama.cpp"
102102
echo "=========================================="
103103

@@ -115,10 +115,10 @@ jobs:
115115

116116
echo "✅ llama.cpp downloaded"
117117

118-
- name: Copy scripts and config
119-
shell: bash
120-
run: |
121-
echo "=========================================="
118+
- name: Copy scripts and config
119+
shell: bash
120+
run: |
121+
echo "=========================================="
122122
echo " Copying scripts"
123123
echo "=========================================="
124124

@@ -146,10 +146,10 @@ EOF
146146

147147
echo "✅ Scripts copied"
148148

149-
- name: Create archive
150-
shell: bash
151-
run: |
152-
echo "=========================================="
149+
- name: Create archive
150+
shell: bash
151+
run: |
152+
echo "=========================================="
153153
echo " Creating offline archive"
154154
echo "=========================================="
155155

@@ -161,18 +161,18 @@ EOF
161161
echo "✅ Offline archive created: $SIZE"
162162
ls -lh OpenClaw-Portable-v6.0.0-windows-offline.tar.gz
163163

164-
- name: Upload to Artifacts
165-
uses: actions/upload-artifact@v4
166-
with:
164+
- name: Upload to Artifacts
165+
uses: actions/upload-artifact@v4
166+
with:
167167
name: openclaw-portable-v6.0.0-windows-offline
168168
path: dist/OpenClaw-Portable-v6.0.0-windows-offline.tar.gz
169169
retention-days: 90
170170
compression-level: 0
171171

172-
- name: Summary
173-
shell: bash
174-
run: |
175-
echo "=========================================="
172+
- name: Summary
173+
shell: bash
174+
run: |
175+
echo "=========================================="
176176
echo " ✅ Offline Build Complete!"
177177
echo "=========================================="
178178
echo " Package: OpenClaw-Portable-v6.0.0-windows-offline.tar.gz"
@@ -186,18 +186,18 @@ EOF
186186
timeout-minutes: 30
187187

188188
steps:
189-
- name: Checkout code
190-
uses: actions/checkout@v4
191-
192-
- name: Create directory structure
193-
shell: bash
194-
run: |
195-
mkdir -p dist/OpenClaw-Portable-v6.0.0-windows-online/{node,openclaw-pkg,llm/bin,llm/models,config,data,workspace,temp}
196-
197-
- name: Download Node.js
198-
shell: bash
199-
run: |
200-
echo "=========================================="
189+
- name: Checkout code
190+
uses: actions/checkout@v4
191+
192+
- name: Create directory structure
193+
shell: bash
194+
run: |
195+
mkdir -p dist/OpenClaw-Portable-v6.0.0-windows-online/{node,openclaw-pkg,llm/bin,llm/models,config,data,workspace,temp}
196+
197+
- name: Download Node.js
198+
shell: bash
199+
run: |
200+
echo "=========================================="
201201
echo " Downloading Node.js 22.16.0"
202202
echo "=========================================="
203203

@@ -211,10 +211,10 @@ EOF
211211

212212
echo "✅ Node.js downloaded"
213213

214-
- name: Install OpenClaw
215-
shell: bash
216-
run: |
217-
echo "=========================================="
214+
- name: Install OpenClaw
215+
shell: bash
216+
run: |
217+
echo "=========================================="
218218
echo " Installing OpenClaw"
219219
echo "=========================================="
220220

@@ -227,10 +227,10 @@ EOF
227227

228228
echo "✅ OpenClaw installed"
229229

230-
- name: Download llama.cpp
231-
shell: bash
232-
run: |
233-
echo "=========================================="
230+
- name: Download llama.cpp
231+
shell: bash
232+
run: |
233+
echo "=========================================="
234234
echo " Downloading llama.cpp"
235235
echo "=========================================="
236236

@@ -248,10 +248,10 @@ EOF
248248

249249
echo "✅ llama.cpp downloaded"
250250

251-
- name: Copy scripts and config
252-
shell: bash
253-
run: |
254-
echo "=========================================="
251+
- name: Copy scripts and config
252+
shell: bash
253+
run: |
254+
echo "=========================================="
255255
echo " Copying scripts"
256256
echo "=========================================="
257257

@@ -288,10 +288,10 @@ EOF
288288

289289
echo "✅ Scripts copied"
290290

291-
- name: Create archive
292-
shell: bash
293-
run: |
294-
echo "=========================================="
291+
- name: Create archive
292+
shell: bash
293+
run: |
294+
echo "=========================================="
295295
echo " Creating online archive"
296296
echo "=========================================="
297297

@@ -303,18 +303,18 @@ EOF
303303
echo "✅ Online archive created: $SIZE"
304304
ls -lh OpenClaw-Portable-v6.0.0-windows-online.tar.gz
305305

306-
- name: Upload to Artifacts
307-
uses: actions/upload-artifact@v4
308-
with:
306+
- name: Upload to Artifacts
307+
uses: actions/upload-artifact@v4
308+
with:
309309
name: openclaw-portable-v6.0.0-windows-online
310310
path: dist/OpenClaw-Portable-v6.0.0-windows-online.tar.gz
311311
retention-days: 90
312312
compression-level: 0
313313

314-
- name: Summary
315-
shell: bash
316-
run: |
317-
echo "=========================================="
314+
- name: Summary
315+
shell: bash
316+
run: |
317+
echo "=========================================="
318318
echo " ✅ Online Build Complete!"
319319
echo "=========================================="
320320
echo " Package: OpenClaw-Portable-v6.0.0-windows-online.tar.gz"
@@ -329,33 +329,33 @@ EOF
329329
if: github.event_name == 'release'
330330

331331
steps:
332-
- name: Download offline artifact
333-
uses: actions/download-artifact@v4
334-
with:
332+
- name: Download offline artifact
333+
uses: actions/download-artifact@v4
334+
with:
335335
name: openclaw-portable-v6.0.0-windows-offline
336336
path: ./packages
337337

338-
- name: Download online artifact
339-
uses: actions/download-artifact@v4
340-
with:
338+
- name: Download online artifact
339+
uses: actions/download-artifact@v4
340+
with:
341341
name: openclaw-portable-v6.0.0-windows-online
342342
path: ./packages
343343

344-
- name: List packages
345-
run: |
346-
echo "📦 Packages to upload:"
344+
- name: List packages
345+
run: |
346+
echo "📦 Packages to upload:"
347347
ls -lh packages/
348348

349-
- name: Upload to Release
350-
uses: softprops/action-gh-release@v1
351-
with:
349+
- name: Upload to Release
350+
uses: softprops/action-gh-release@v1
351+
with:
352352
files: packages/*
353353
env:
354354
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
355355

356-
- name: Summary
357-
run: |
358-
echo "=========================================="
356+
- name: Summary
357+
run: |
358+
echo "=========================================="
359359
echo " ✅ Dual Release Complete!"
360360
echo "=========================================="
361361
echo ""

0 commit comments

Comments
 (0)