[Velocity] 修复Yaml构造器 #377
This file contains hidden or 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
| # 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@v4.2.2 | |
| - name: Set up JDK 21 | |
| uses: actions/setup-java@v4.7.0 | |
| with: | |
| java-version: '21' | |
| distribution: 'zulu' | |
| - name: Set variable | |
| id: variables | |
| run: | | |
| echo "PROJECT_VERSION=$(mvn org.apache.maven.plugins:maven-help-plugin:3.1.0:evaluate -Dexpression=project.version -q -DforceStdout)" >> "$GITHUB_OUTPUT" | |
| - name: Update version | |
| run: mvn versions:set -DnewVersion="${{ steps.variables.outputs.PROJECT_VERSION }}+github#${{ github.run_number }}" -DprocessAllModules=true -DgenerateBackupPoms=false | |
| - 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@v4.6.0 | |
| 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@v4.6.0 | |
| 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@v4.6.0 | |
| 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@v4.6.0 | |
| 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@v4.6.0 | |
| with: | |
| name: "MiraiMC-Velocity.jar" | |
| path: MiraiMC-Velocity/target/MiraiMC-Velocity.jar |