diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml new file mode 100644 index 0000000..0223325 --- /dev/null +++ b/.github/workflows/maven-publish.yml @@ -0,0 +1,34 @@ +name: Maven CI/CD + +on: + push: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up JDK 14 + uses: actions/setup-java@v1 + with: + java-version: 14 + + - name: Build project with Maven + run: mvn -B package --file pom.xml + publish-job: + runs-on: ubuntu-latest + needs: [build] + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 14 + - run: mvn -B package --file pom.xml -DskipTests + - run: mkdir staging && cp target/*.jar staging + - uses: actions/upload-artifact@v1 + with: + name: Package + path: staging diff --git a/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java b/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java index 0ee5657..83e425b 100644 --- a/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java +++ b/src/main/java/org/dynmap/mobs/DynmapMobsPlugin.java @@ -243,7 +243,7 @@ public void init() { new MobMapping("frog", "org.bukkit.entity.Frog", "Frog"), new MobMapping("tadpole", "org.bukkit.entity.Tadpole", "Tadpole"), new MobMapping("allay", "org.bukkit.entity.Allay", "Allay"), - new MobMapping("sniffer", "org.bukkit.entity.Sniffer", Sniffer") + new MobMapping("sniffer", "org.bukkit.entity.Sniffer", "Sniffer") }; private MobMapping config_vehicles[] = {