This commit is contained in:
parent
5fd1501c4c
commit
caf05eb698
34
.gitea/workflows/package-sakura-dress.yml
Normal file
34
.gitea/workflows/package-sakura-dress.yml
Normal file
@ -0,0 +1,34 @@
|
||||
name: Package Sakura Dress
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- 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,可以移除这一步
|
||||
|
||||
# 注意:如果你只是想要生成ZIP文件而不上传它作为构建产物,你可以安全地移除“Upload artifact”步骤。
|
Loading…
x
Reference in New Issue
Block a user