Skip to content

Commit a810340

Browse files
committed
build(workflow): 更新构建脚本以生成.mcdr文件
- 将打包命令从.zip改为.mcdr扩展名 - 更新上传工件路径以使用.mcdr文件 - 修改R2上传准备步骤中的文件复制逻辑 - 更新发布描述中的文件引用路径
1 parent e2f988a commit a810340

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ jobs:
3333
fi
3434
3535
- name: Zip package
36-
run: zip -r "HuHoBot-MCDR-${{ env.PKG_VERSION }}.zip" . -x '.git/*' '.github/*'
36+
run: zip -r "HuHoBot-MCDR-${{ env.PKG_VERSION }}.mcdr" . -x '.git/*' '.github/*'
3737

3838
- name: Upload Artifact
3939
uses: actions/upload-artifact@v4
4040
with:
4141
name: plugin-package
42-
path: "HuHoBot-MCDR-${{ env.PKG_VERSION }}.zip"
42+
path: "HuHoBot-MCDR-${{ env.PKG_VERSION }}.mcdr"
4343

4444
release:
4545
name: Create Release
@@ -62,7 +62,7 @@ jobs:
6262
- name: Prepare R2 upload
6363
run: |
6464
mkdir -p mcdr
65-
cp "artifacts/HuHoBot-MCDR-${{ github.ref_name }}.zip" mcdr/
65+
cp "artifacts/HuHoBot-MCDR-${{ github.ref_name }}.mcdr" mcdr/
6666
echo '{"latest":"${{ github.ref_name }}"}' > mcdr/latest.json
6767
6868
- name: Upload to R2
@@ -114,4 +114,4 @@ jobs:
114114
- 构建时间: ${{ steps.get-time.outputs.TIME }}
115115
- 提交哈希: [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
116116
files: |
117-
artifacts/HuHoBot-MCDR-${{ github.ref_name }}.zip
117+
artifacts/HuHoBot-MCDR-${{ github.ref_name }}.mcdr

0 commit comments

Comments
 (0)