Skip to content

packer

packer #18

Workflow file for this run

name: Packer
on:
push:
branches:
- main
paths:
- 'projects/**'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
version: ['1.12.2', '1.16', '1.18', '1.19', '1.20']
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create temporary directory
run: mkdir -p temp/${{ matrix.version }}
- name: Copy folder
run: cp -r projects/${{ matrix.version }} temp/${{ matrix.version }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: VM汉化组模组汉化包${{ matrix.version }}.zip
path: temp/${{ matrix.version }}
- name: Clean up temporary directory
if: ${{ always() }}
run: rm -rf temp