27 lines
659 B
YAML
27 lines
659 B
YAML
name: Build1.21
|
|
|
|
on: push
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 拉取项目
|
|
uses: actions/checkout@v4
|
|
- name: 初始化环境
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: 'liberica'
|
|
java-version: '21'
|
|
- name: 初始化Gradle
|
|
uses: gradle/actions/setup-gradle@v4
|
|
- name: 构建项目
|
|
run: |
|
|
chmod 755 ./gradlew
|
|
./gradlew build
|
|
- name: 上传构建
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: MCTools_Neoforge1.20.6.jar
|
|
path: build/libs/mctoolsneo-1.0.0.jar
|
|
retention-days: 16 |