Sakura-Dress/.gitea/workflows/package-sakura-dress.yml
Data07 6695fc7e3a
Some checks failed
Package Sakura Dress / build (push) Failing after 4s
Package Sakura Dress
2024-08-04 00:17:11 +08:00

38 lines
1.1 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Package Sakura Dress
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
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文件
mkdir -p build
# 打包sakura_dress_BP和sakura_dress_RP文件夹到SakuraDress.mcaddon
zip -r build/SakuraDress.mcaddon sakura_dress_BP sakura_dress_RP
# 列出构建目录以验证ZIP文件已生成
ls -lh build/
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: SakuraDress
path: build/SakuraDress.mcaddon
# 注意如果你不需要将ZIP文件作为构建产物上传到GitHub Actions的Artifacts
# 你可以安全地移除“Upload artifact”步骤。