fix: fix possible npe in Game#isEntityShop method #116
This file contains 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 ver/0.2.x | |
on: | |
push: | |
branches: [ ver/0.2.x ] | |
concurrency: bedwars_0_2_x | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set the Build number | |
id: calculated_build_number | |
env: | |
NUM: ${{ github.run_number }} | |
run: echo "build_n=$(($NUM+40))" >> $GITHUB_OUTPUT | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 17 | |
cache: 'gradle' | |
- name: Grant execute permission for gradlew | |
run: chmod +x gradlew | |
- name: Build with Gradle | |
run: ./gradlew | |
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 }} | |
JAVADOC_HOST: ${{ secrets.JAVADOC_HOST }} | |
JAVADOC_SECRET: ${{ secrets.JAVADOC_SECRET }} | |
JAVADOC_USER: ${{ secrets.JAVADOC_USER }} | |
OPTIMIZE_FOR_CI_CD: "1" | |
BUILD_NUMBER: ${{ steps.calculated_build_number.outputs.build_n }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL_0_2_X }} | |
REPOSILITE_BASE_URL: ${{ secrets.REPOSILITE_BASE_URL }} | |
GITHUB_ACTIONS_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" | |
- name: Upload the final artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
path: plugin/build/libs/BedWars*[!s].jar |