Upgrade Minestom dependency to 2026.05.17-1.21.11 #16
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: Build Gradle and Publish Docker image | |
| on: | |
| push: | |
| branches: | |
| - 'master' | |
| - 'claude/titan-minestom-deployment-XhoNO' | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: | |
| - 'master' | |
| env: | |
| REGISTRY: ghcr.io | |
| IMAGE_NAME: ${{ github.repository }} | |
| jobs: | |
| build-gradle: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup Java | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '21' | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Run build and tests with Gradle wrapper | |
| run: ./gradlew test build publish cyclonedxBom -PdockerTests | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| ONELITEFEATHER_MAVEN_USERNAME: ${{ secrets.ONELITEFEATHER_MAVEN_USERNAME }} | |
| ONELITEFEATHER_MAVEN_PASSWORD: ${{ secrets.ONELITEFEATHER_MAVEN_PASSWORD }} | |
| - name: Strip leading v from tag | |
| if: startsWith(github.ref, 'refs/tags/') | |
| run: echo "VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV" | |
| - run: | | |
| echo "Version: $VERSION" | |
| - name: Upload BOM to Dependency-Track | |
| if: steps.get_version_env.outputs.VERSION != '' | |
| uses: DependencyTrack/gh-upload-sbom@v3 | |
| with: | |
| serverhostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }} | |
| apikey: ${{ secrets.DEPENDENCYTRACK_APIKEY }} | |
| projectname: "LuckPerms" | |
| projectversion: ${{ env.VERSION }} | |
| projecttags: '' | |
| bomfilename: "build/reports/cyclonedx/bom.xml" | |
| autocreate: true | |
| parent: 'd816150f-9639-4993-8949-eae5ffc25de2' | |
| - name: Publish test report | |
| uses: mikepenz/action-junit-report@v5 | |
| if: success() || failure() | |
| with: | |
| report_paths: '**/build/test-results/test/TEST-*.xml' | |
| annotate_notice: true | |
| detailed_summary: true | |
| - name: Upload all artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jars | |
| path: | | |
| bukkit/loader/build/libs/LuckPerms-Bukkit-*.jar | |
| bukkit-legacy/loader/build/libs/LuckPerms-Bukkit-Legacy-*.jar | |
| bungee/loader/build/libs/LuckPerms-Bungee-*.jar | |
| sponge/loader/build/libs/LuckPerms-Sponge-*.jar | |
| nukkit/loader/build/libs/LuckPerms-Nukkit-*.jar | |
| velocity/build/libs/LuckPerms-Velocity-*.jar | |
| fabric/build/libs/LuckPerms-Fabric-*.jar | |
| forge/loader/build/libs/LuckPerms-Forge-*.jar | |
| standalone/loader/build/libs/LuckPerms-Standalone-*.jar | |
| - name: Upload standalone artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: standalone-binary | |
| path: standalone/loader/build/libs/LuckPerms-Standalone-*.jar | |
| build-docker: | |
| needs: build-gradle | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| packages: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Retrieve saved standalone jar artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: standalone-binary | |
| path: standalone/docker/ | |
| - name: Remove version number from jar artifact name | |
| run: mv standalone/docker/LuckPerms-Standalone-*.jar standalone/docker/luckperms-standalone.jar | |
| - name: Set up QEMU | |
| uses: docker/setup-qemu-action@v3 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v3 | |
| - name: Log in to the Container registry | |
| uses: docker/login-action@v3 | |
| with: | |
| username: ${{ secrets.HARBOR_USERNAME }} | |
| password: ${{ secrets.HARBOR_PASSWORD }} | |
| registry: ${{ secrets.HARBOR_REGISTRY }} | |
| - name: Determine the LuckPerms version | |
| run: | | |
| echo "luckperms_version=$(git describe --tags | awk -F "-" '{print $1 "." $2}')" >> "$GITHUB_ENV" | |
| - name: Extract metadata for Docker | |
| id: meta | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: ${{ secrets.HARBOR_REGISTRY }}/luckperms/luckperms-standalone | |
| flavor: | | |
| latest=${{ github.ref == 'refs/heads/master' }} | |
| tags: | | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=ref,event=pr | |
| type=raw,enable=${{ github.ref == 'refs/heads/master' }},value=${{ env.luckperms_version }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v6 | |
| with: | |
| context: standalone/docker/ | |
| platforms: linux/amd64,linux/arm64 | |
| push: ${{ github.event_name != 'pull_request' }} | |
| tags: ${{ steps.meta.outputs.tags }} | |
| labels: ${{ steps.meta.outputs.labels }} |