Merge pull request #25 from CoderFrish/dev/1.21.8 #9
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: LemonMint CI - ver/1.21.8 | |
| on: | |
| push: | |
| paths: | |
| - "lemonMint-server/**/*" | |
| - "lemonMint-api/**/*" | |
| - ".github/workflows/build_*.yml" | |
| - "scripts/*.sh" | |
| - "build.gradle.kts" | |
| - "settings.gradle.kts" | |
| - "gradle.properties" | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| environment: default | |
| steps: | |
| - name: Checkout Git Repository | |
| uses: actions/checkout@v4 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Set up JDK | |
| uses: actions/setup-java@v4.5.0 | |
| with: | |
| java-version: '22' | |
| distribution: 'zulu' | |
| architecture: x64 | |
| - name: Configure Git | |
| run: | | |
| git config --global user.email "no-reply@github.com" | |
| git config --global user.name "Github Actions" | |
| - name: Grant execute permission for build scripts. | |
| run: | | |
| chmod +x gradlew | |
| chmod +x scripts/set_env.sh | |
| - name: Apply Server Patches | |
| run: | | |
| ./gradlew applyAllPatches | |
| - name: Create Server Jar | |
| run: | | |
| ./gradlew createMojmapPaperclipJar | |
| - name: Publish Server API | |
| continue-on-error: true | |
| run: | | |
| ./gradlew generateDevelopmentBundle publish -PpublishDevBundle=true | |
| env: | |
| MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }} | |
| MAVEN_PASSWORD: ${{ secrets.MAVEN_PASSWORD }} | |
| - name: Upload Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: LemonMint CI Artifacts | |
| path: lemonMint-server/build/libs/*-paperclip-*-mojmap.jar | |
| - name : Configure environment | |
| run: | | |
| sh scripts/set_env.sh | |
| - name: Create Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: ${{ env.commit_tag }} | |
| name: LemonMint ${{ env.version }} - ${{ env.commit_tag }} | |
| body: | | |
| ## 📦Version: `${{ env.version }}` | Commit ${{ env.commit_tag }} | |
| This release is automatically compiled by GitHub Actions | |
| ## 📜 Commit Message: | |
| ${{ env.commit_msg }} | |
| artifacts: | | |
| lemonMint-server/build/libs/lemonMint-paperclip-*-mojmap.jar | |
| makeLatest: true | |
| token: ${{ secrets.GITHUB_TOKEN }} |