Skip to content

Commit 7c36fba

Browse files
authored
Merge pull request #41 from TrueNine/dev
ci: update CLI release workflows (2 modified)
2 parents 8b9c950 + 309fbb6 commit 7c36fba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/release-cli-napi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ jobs:
106106
shell: bash
107107
run: |
108108
target_dir="cli/npm/${{ matrix.target.suffix }}"
109+
mkdir -p "$target_dir"
109110
for lib in logger md-compiler config init-bundle; do
110111
cp libraries/$lib/dist/*.node "$target_dir/"
111112
done
@@ -146,6 +147,7 @@ jobs:
146147
for artifact_dir in artifacts/cli-napi-*/; do
147148
suffix=$(basename "$artifact_dir" | sed 's/cli-napi-//')
148149
target_dir="cli/npm/${suffix}"
150+
mkdir -p "$target_dir"
149151
echo "Copying from ${artifact_dir} to ${target_dir}"
150152
cp "${artifact_dir}"*.node "$target_dir/" || { echo "ERROR: no .node files found in ${artifact_dir}"; exit 1; }
151153
done

.github/workflows/release-cli.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ jobs:
100100
version: ${{ needs.check-version.outputs.version }}
101101
secrets: inherit
102102

103-
# 5. 构建 GUI 并创建 GitHub Release
103+
# 5. 构建 GUI 并创建 GitHub Release(等 CLI 主包发布完成后再构建)
104104
release-gui:
105-
needs: check-version
105+
needs: [check-version, publish-cli]
106106
if: needs.check-version.outputs.publish == 'true'
107107
uses: ./.github/workflows/release-gui.yml
108108
with:

0 commit comments

Comments
 (0)