diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
new file mode 100644
index 0000000..f19bc68
--- /dev/null
+++ b/.github/workflows/workflow.yml
@@ -0,0 +1,35 @@
+name: Build Plugin
+run-name: Building Plugin 🚀
+on:
+ push:
+ tags:
+ - 'ver/**'
+
+jobs:
+ build:
+ name: Build with Maven
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v5
+
+ - name: Set up JDK 25 and enable Maven cache
+ uses: actions/setup-java@v5
+ with:
+ distribution: 'liberica'
+ java-version: '25'
+ cache: 'maven'
+
+ - name: Set up Maven
+ uses: stCarolas/setup-maven@v5
+ with:
+ maven-version: 3.9.16
+
+ - name: Build and package with Maven
+ run: mvn -B package
+
+ - name: Upload built artifacts
+ uses: actions/upload-artifact@v3
+ with:
+ name: maven-artifacts
+ path: target/spigot/*.jar
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 3dae868..b940c4c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -11,55 +11,6 @@
fortern-helper
-
- 25
- 2.4.0
- UTF-8
-
-
-
- clean package
- ${project.basedir}/src/main/kotlin
-
-
- org.jetbrains.kotlin
- kotlin-maven-plugin
- ${kotlin.version}
-
-
- compile
- compile
-
- compile
-
-
-
-
- ${java.version}
-
-
-
- org.apache.maven.plugins
- maven-shade-plugin
- 3.5.3
-
-
- package
-
- shade
-
-
-
-
-
-
-
- src/main/resources
- true
-
-
-
-
spigotmc-repo
@@ -76,6 +27,12 @@
+
+ 25
+ 2.4.0
+ UTF-8
+
+
@@ -89,6 +46,7 @@
org.jetbrains.kotlin
kotlin-stdlib
${kotlin.version}
+ provided
@@ -126,4 +84,52 @@
provided
+
+
+ clean package
+ ${project.basedir}/src/main/kotlin
+
+
+ org.jetbrains.kotlin
+ kotlin-maven-plugin
+ ${kotlin.version}
+
+
+ compile
+ compile
+
+ compile
+
+
+
+
+ ${java.version}
+
+
+
+ org.apache.maven.plugins
+ maven-shade-plugin
+ 3.5.3
+
+
+ package
+
+ shade
+
+
+
+
+ ${project.artifactId}-spigot-${project.version}
+ ${project.build.directory}/spigot
+ false
+
+
+
+
+
+ src/main/resources
+ true
+
+
+