Build Nukkit Plugin (WaffleEssentialsNK) #8
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 Nukkit Plugin (WaffleEssentialsNK) | |
| on: | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Setup JDK | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: 'temurin' | |
| java-version: '8' | |
| - name: Cache Maven | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.m2 | |
| key: maven-${{ runner.os}}-${{ hashFiles('**/pom.xml')}} | |
| restore-keys: | | |
| maven-${{ runner.os}} | |
| - name: Build plugin with Maven | |
| run: mvn clean package | |
| - name: Upload Plugin JAR | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: WaffleEssentialsNK | |
| path: target/*.jar |