build: update to latest bwlang changes #158
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 and publish BedWars master | |
| on: | |
| push: | |
| branches: [ master ] | |
| concurrency: bedwars_master | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| env: | |
| FORCE_JAVADOC: true | |
| GIT_COMMIT_MESSAGE: "${{ github.event.head_commit.message }}" | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@v6 | |
| - name: Validate Gradle Wrapper | |
| uses: gradle/actions/wrapper-validation@v5 | |
| - name: Set the Build number | |
| id: calculated_build_number | |
| env: | |
| NUM: ${{ github.run_number }} | |
| run: echo "build_n=$(($NUM+865))" >> $GITHUB_OUTPUT | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: 'temurin' | |
| java-version: 17 | |
| - name: Setup Gradle | |
| uses: gradle/actions/setup-gradle@v5 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Build with Gradle | |
| run: ./gradlew clean checkLicenses build :BedWars-API:javadocJar --stacktrace --warning-mode all | |
| env: | |
| BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }} | |
| - name: Publish with Gradle | |
| run: ./gradlew publish --stacktrace --warning-mode all | |
| env: | |
| NEXUS_URL_RELEASE: ${{ secrets.NEXUS_URL_RELEASE }} | |
| NEXUS_URL_SNAPSHOT: ${{ secrets.NEXUS_URL_SNAPSHOT }} | |
| NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }} | |
| NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }} | |
| BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }} | |
| - name: Upload the final artifact | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| path: | | |
| plugin/*/build/libs/BedWars*.jar | |
| !plugin/*/build/libs/BedWars*-unshaded.jar | |
| protocol/build/libs/BedWars*.jar | |
| !protocol/build/libs/BedWars*-unshaded.jar | |
| !plugin/common/**/* |