From 6695fc7e3a25d31c796fc62c336aeefbdcf28398 Mon Sep 17 00:00:00 2001 From: Data07 Date: Sun, 4 Aug 2024 00:17:11 +0800 Subject: [PATCH] Package Sakura Dress --- .gitea/workflows/package-sakura-dress.yml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/package-sakura-dress.yml b/.gitea/workflows/package-sakura-dress.yml index 1a85a84..95f1771 100644 --- a/.gitea/workflows/package-sakura-dress.yml +++ b/.gitea/workflows/package-sakura-dress.yml @@ -12,16 +12,20 @@ jobs: steps: - uses: actions/checkout@v2 - + + # 可选:如果你发现zip命令不可用,取消注释以下行来安装zip + - name: Install zip + run: sudo apt-get update && sudo apt-get install -y zip + - name: Zip Sakura Dress Folders run: | - # 创建一个新的目录用于存放zip文件,以避免污染仓库目录 + # 创建一个新的目录用于存放zip文件 mkdir -p build # 打包sakura_dress_BP和sakura_dress_RP文件夹到SakuraDress.mcaddon zip -r build/SakuraDress.mcaddon sakura_dress_BP sakura_dress_RP - # (可选)列出构建目录以验证ZIP文件已生成 + # 列出构建目录以验证ZIP文件已生成 ls -lh build/ - name: Upload artifact @@ -29,6 +33,6 @@ jobs: with: name: SakuraDress path: build/SakuraDress.mcaddon - # 如果不需要将ZIP文件作为构建产物上传到GitHub Actions的Artifacts,可以移除这一步 -# 注意:如果你只是想要生成ZIP文件而不上传它作为构建产物,你可以安全地移除“Upload artifact”步骤。 \ No newline at end of file +# 注意:如果你不需要将ZIP文件作为构建产物上传到GitHub Actions的Artifacts, +# 你可以安全地移除“Upload artifact”步骤。 \ No newline at end of file