Skip to content

Update dependency com.sk89q.worldedit:worldedit-bukkit to v7.3.7 #244

Update dependency com.sk89q.worldedit:worldedit-bukkit to v7.3.7

Update dependency com.sk89q.worldedit:worldedit-bukkit to v7.3.7 #244

# This workflow will build a Java project with Gradle
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle
name: Java CI with Gradle
on: [ push ]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.commits[0].message, '[ci-skip]')"
steps:
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v1
- name: Set up JDK 17
uses: actions/setup-java@v2
with:
distribution: temurin
java-version: 17
cache: gradle
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Test with Gradle
run: ./gradlew test
- name: Build with Gradle
run: ./gradlew build
- name: Upload artifacts
uses: "actions/[email protected]"
with:
name: "IridiumEnchants"
path: "build/libs/IridiumEnchants-*.jar"
upload:
needs: build
runs-on: ubuntu-latest
if: "contains(github.event.commits[0].message, 'Version Increment')"
steps:
- uses: actions/checkout@v4
- uses: thecodemonkey/action-get-gradle-version@master
id: version
with:
file: "build.gradle.kts"
- uses: actions/[email protected]
with:
name: "IridiumEnchants"
path: "./"
- name: Publish to Nexus
uses: sonatype-nexus-community/nexus-repo-github-action@master
with:
serverUrl: "https://nexus.iridiumdevelopment.net/"
username: "${{ secrets.NEXUS_USERNAME }}"
password: "${{ secrets.NEXUS_PASSWORD }}"
format: "maven2"
repository: "maven-releases"
coordinates: "groupId=com.iridium artifactId=IridiumEnchants version=${{steps.version.outputs.version}} generate-pom=on"
assets: "extension=jar"
filename: "IridiumEnchants-*.jar"