Skip to content

将配置加载并入主代码 #270

将配置加载并入主代码

将配置加载并入主代码 #270

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Java CI with Maven
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.5.3
- name: Set up JDK 21
uses: actions/setup-java@v3.12.0
with:
java-version: '21'
distribution: 'zulu'
- name: Update version
run: mvn versions:set -DnewVersion=dev-${{ github.run_number }} -DprocessAllModules=true
- name: Build with Maven
run: mvn -B package --file pom.xml
# MiraiMC-Bukkit.jar
- name: Upload a Build Artifact - MiraiMC Bukkit
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Bukkit.jar"
path: MiraiMC-Bukkit/target/MiraiMC-Bukkit.jar
# MiraiMC-Bungee.jar
- name: Upload a Build Artifact - MiraiMC Bungee
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Bungee.jar"
path: MiraiMC-Bungee/target/MiraiMC-Bungee.jar
# MiraiMC-Sponge.jar
- name: Upload a Build Artifact - MiraiMC Sponge
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Sponge.jar"
path: MiraiMC-Sponge/target/MiraiMC-Sponge.jar
# MiraiMC-Nukkit.jar
- name: Upload a Build Artifact - MiraiMC Nukkit
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Nukkit.jar"
path: MiraiMC-Nukkit/target/MiraiMC-Nukkit.jar
# MiraiMC-Velocity.jar
- name: Upload a Build Artifact - MiraiMC Velocity
uses: actions/upload-artifact@v3.1.2
with:
name: "MiraiMC-Velocity.jar"
path: MiraiMC-Velocity/target/MiraiMC-Velocity.jar