Skip to content

Commit 3025ef6

Browse files
committed
feat: add separate filename configuration for release assets
- Added 'filename' field to matrix configuration for each build type - Updated package naming to use filename instead of internal name - This provides better control over release asset names: * AI plugin: qiniu-ai-{version}.difypkg * Storage plugin: qiniu-storage-{version}.difypkg * Complete plugin: qiniu-cloud-{version}.difypkg - Maintains backward compatibility while improving release asset naming clarity
1 parent 3136025 commit 3025ef6

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,22 @@ jobs:
1111
matrix:
1212
include:
1313
- type: "ai"
14-
name: "qiniu-ai"
14+
name: "qiniu"
15+
filename: "qiniu-ai"
1516
label_en: "Qiniu AI"
1617
label_zh: "七牛云 AI"
1718
keep_models: true
1819
keep_tools: false
1920
- type: "kodo"
2021
name: "qiniu-tools"
22+
filename: "qiniu-storage"
2123
label_en: "Qiniu Storage"
2224
label_zh: "七牛云存储"
2325
keep_models: false
2426
keep_tools: true
2527
- type: "all"
26-
name: "qiniu"
28+
name: "qiniu-all"
29+
filename: "qiniu-all"
2730
label_en: "Qiniu Cloud"
2831
label_zh: "七牛云"
2932
keep_models: true
@@ -101,7 +104,7 @@ jobs:
101104
id: get_version
102105
run: |
103106
VERSION=$(yq eval '.version' /tmp/plugin-build/manifest.yaml)
104-
PACKAGE_NAME="${{ matrix.name }}-${VERSION}.difypkg"
107+
PACKAGE_NAME="${{ matrix.filename }}-${VERSION}.difypkg"
105108
echo "version=$VERSION" >> $GITHUB_OUTPUT
106109
echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
107110
echo "Extracted version: $VERSION"

0 commit comments

Comments
 (0)