Port to 1.21.10 (#170) #249
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 Entropy dev | |
| on: [push, pull_request] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: true | |
| - name: Get Commit hash | |
| run: echo "SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
| - name: Change Mod Version | |
| uses: dschanoeh/change-property@v1 | |
| with: | |
| file: gradle.properties | |
| property: mod_version | |
| value: "dev-${{env.SHORT_SHA}}" | |
| - name: Setup Java | |
| uses: actions/setup-java@v2 | |
| with: | |
| distribution: "temurin" | |
| java-version: 21 | |
| - name: Make Gradle Wrapper Executable | |
| if: ${{ runner.os != 'Windows' }} | |
| run: chmod +x ./gradlew | |
| - name: Build | |
| run: ./gradlew clean build | |
| - name: Publish Entropy | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: "Entropy dev-${{env.SHORT_SHA}}" | |
| path: ${{github.workspace}}/build/libs/*.jar |