feat: remove showMessage from enderpearl & crafting modules, relying … #13
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: Dev builds | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches-ignore: | |
- 'ingametesting' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Validate Gradle Wrapper | |
uses: gradle/wrapper-validation-action@v1 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
cache: gradle | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v3 | |
with: | |
gradle-version: wrapper | |
- name: Determine if this is a release version | |
run: | | |
IS_RELEASE=$(./gradlew -q printIsRelease) | |
echo "Is release? $IS_RELEASE" | |
echo "IS_RELEASE=$IS_RELEASE" >> $GITHUB_ENV | |
- name: Run Gradle Build | |
run: | | |
./gradlew clean build | |
- name: Archive jar file | |
uses: actions/upload-artifact@v4 | |
with: | |
name: OldCombatMechanics | |
path: build/libs/OldCombatMechanics.jar | |
- name: Publish Snapshot to Hangar | |
if: ${{ github.event_name == 'push' && github.event.pull_request == null && env.IS_RELEASE != 'true' }} | |
env: | |
HANGAR_API_TOKEN: ${{ secrets.HANGAR_API_TOKEN }} | |
run: | | |
./gradlew publishPluginPublicationToHangar |