删除历史遗留的鸡命名空间问题 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Packer | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'projects/**' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Create temporary directory | |
run: mkdir temp | |
- name: Copy and Upload artifacts | |
run: | | |
for version in 1.12.2 1.16 1.18 1.19 1.20; do | |
cp -r projects/$version temp/$version | |
zip -r temp/VM汉化组模组汉化包$version temp/$version | |
done | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: VM汉化组模组汉化包 | |
path: | | |
temp/VM汉化组模组汉化包1.12.2 | |
temp/VM汉化组模组汉化包1.16 | |
temp/VM汉化组模组汉化包1.18 | |
temp/VM汉化组模组汉化包1.19 | |
temp/VM汉化组模组汉化包1.20 | |
- name: Clean up temporary directory | |
run: rm -rf temp |