Fix mobcontrol goal removal #79
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: "Compile" | |
| on: [push] | |
| jobs: | |
| gradle: | |
| strategy: | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v4 | |
| - name: Get Minecraft Version | |
| run: echo "MC_VERSION=$(${{ github.workspace }}/gradlew -q getMCVersion)" >> $GITHUB_ENV | |
| - name: Get Plugin Version | |
| run: echo "PLUGIN_VERSION=$(${{ github.workspace }}/gradlew -q getVersion)" >> $GITHUB_ENV | |
| - name: Execute Gradle build | |
| run: ./gradlew build | |
| - name: Upload a Build Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: LargeRaids | |
| path: build/libs/ | |
| - name: Release | |
| uses: "ThisTestUser/marvinpinto-action-automatic-releases@1.0" | |
| with: | |
| repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
| automatic_release_tag: "${{ env.MC_VERSION }}" | |
| prerelease: false | |
| title: "Plugin Download for Minecraft ${{ env.MC_VERSION }}" | |
| files: | | |
| build/libs/LargeRaids-${{ env.PLUGIN_VERSION }}.jar |