diff --git a/.github-actions/maven/deployment.xml b/.github-actions/maven/deployment.xml
new file mode 100644
index 00000000..63772662
--- /dev/null
+++ b/.github-actions/maven/deployment.xml
@@ -0,0 +1,11 @@
+
+
+
+
+ sonatype-ossrh
+ ${env.SONATYPE_OSSRH_DEPLOYER}
+ ${env.SONATYPE_OSSRH_TOKEN}
+
+
+
diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
new file mode 100644
index 00000000..6a40ebff
--- /dev/null
+++ b/.github/workflows/deploy.yml
@@ -0,0 +1,35 @@
+name: Deploy
+
+on: [ push, workflow_dispatch ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+
+ steps:
+ - uses: actions/checkout@v2
+
+ - name: Set up JDK 1.8
+ uses: actions/setup-java@v1
+ with:
+ java-version: 1.8
+
+ - name: Cache Maven packages
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2
+ key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
+ restore-keys: ${{ runner.os }}-m2
+
+ - name: Deploy
+ env:
+ SONATYPE_OSSRH_DEPLOYER: ${{ secrets.SONATYPE_OSSRH_DEPLOYER }}
+ SONATYPE_OSSRH_TOKEN: ${{ secrets.SONATYPE_OSSRH_TOKEN }}
+ run: mvn -B -f ./PacketWrapper/pom.xml deploy -s ./.github-actions/maven/deployment.xml
+
+ - name: Upload artifacts
+ uses: actions/upload-artifact@v2
+ with:
+ name: plugin
+ path: PacketWrapper/target/PacketWrapper.jar
diff --git a/PacketWrapper/pom.xml b/PacketWrapper/pom.xml
index 190e894d..4ba4c3cd 100644
--- a/PacketWrapper/pom.xml
+++ b/PacketWrapper/pom.xml
@@ -2,9 +2,9 @@
4.0.0
- com.comphenix.packetwrapper
- PacketWrapper
- 1.16.4-R0.1-SNAPSHOT
+ ru.progrm-jarvis.minecraft
+ packet-wrapper
+ 1.16.4-SNAPSHOT
PacketWrapper
@@ -27,13 +27,9 @@
-
- dmulloy2-repo
- https://repo.dmulloy2.net/content/repositories/releases/
-
- dmulloy2-repo
- https://repo.dmulloy2.net/content/repositories/snapshots/
+ sonatype-ossrh
+ https://oss.sonatype.org/content/repositories/snapshots/
@@ -41,7 +37,7 @@
org.spigotmc
spigot
- ${project.version}
+ 1.16.4-R0.1-SNAPSHOT
provided