feat: move config command to new command system #26
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
| name: Luminol CI | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - "**" | |
| permissions: write-all | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: default | |
| steps: | |
| - name: Checkout Git Repository | |
| uses: actions/checkout@v5 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: zulu | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Configure Git User Details | |
| run: git config --global user.email "ci@luminolmc.com" && git config --global user.name "LuminolMC CI" | |
| - name: Apply All Patches | |
| run: ./gradlew --refresh-dependencies applyAllPatches | |
| - name: CreateMojmapPaperclipJar | |
| run: ./gradlew --refresh-dependencies createMojmapPaperclipJar | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ env.project_id_b }} CI Artifacts | |
| path: luminol-server/build/libs/*-paperclip-*-mojmap.jar | |
| - name: SetENV | |
| if: github.event_name != 'pull_request' | |
| run: sh scripts/SetENV.sh | |
| - name: Publish to repo | |
| if: github.event_name != 'pull_request' && env.flag_release == 'true' | |
| continue-on-error: true | |
| run: ./gradlew --refresh-dependencies generateDevelopmentBundle publish -PpublishDevBundle=true | |
| env: | |
| PRIVATE_MAVEN_REPO_PASSWORD: ${{ secrets.PRIVATE_MAVEN_REPO_PASSWORD }} | |
| PRIVATE_MAVEN_REPO_USERNAME: ${{ secrets.PRIVATE_MAVEN_REPO_USERNAME }} | |
| - name: Create Release | |
| if: github.event_name != 'pull_request' && env.flag_release == 'true' | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: ${{ env.tag }} | |
| name: ${{ env.project_id_b }} ${{ env.mcversion }} - ${{ env.commit_id }} | |
| body: | | |
| 📦Version: `${{ env.mcversion }}` | Commit ${{ env.commit_id }} [](https://github.com/LuminolMC/${{ env.project_id }}/releases/download/${{ env.tag }}/${{ env.jar }}) | |
| This release is automatically compiled by GitHub Actions | |
| ### Commit Message | |
| ${{ env.commit_msg }} | |
| artifacts: ${{ env.jar_dir }} | |
| generateReleaseNotes: true | |
| prerelease: ${{ env.pre }} | |
| makeLatest: ${{ env.make_latest }} | |
| token: ${{ secrets.GITHUB_TOKEN }} |