File tree Expand file tree Collapse file tree 3 files changed +52
-10
lines changed Expand file tree Collapse file tree 3 files changed +52
-10
lines changed Original file line number Diff line number Diff line change 1+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
4+ <servers >
5+ <server >
6+ <id >sonatype-ossrh</id >
7+ <username >${env.SONATYPE_OSSRH_DEPLOYER}</username >
8+ <password >${env.SONATYPE_OSSRH_TOKEN}</password >
9+ </server >
10+ </servers >
11+ </settings >
Original file line number Diff line number Diff line change 1+ name : Deploy
2+
3+ on : [ push, workflow_dispatch ]
4+
5+ jobs :
6+ build :
7+
8+ runs-on : ubuntu-latest
9+
10+ steps :
11+ - uses : actions/checkout@v2
12+
13+ - name : Set up JDK 1.8
14+ uses : actions/setup-java@v1
15+ with :
16+ java-version : 1.8
17+
18+ - name : Cache Maven packages
19+ uses : actions/cache@v2
20+ with :
21+ path : ~/.m2
22+ key : ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
23+ restore-keys : ${{ runner.os }}-m2
24+
25+ - name : Deploy
26+ env :
27+ SONATYPE_OSSRH_DEPLOYER : ${{ secrets.SONATYPE_OSSRH_DEPLOYER }}
28+ SONATYPE_OSSRH_TOKEN : ${{ secrets.SONATYPE_OSSRH_TOKEN }}
29+ run : mvn -B -f ./PacketWrapper/pom.xml deploy -s ./.github-actions/maven/deployment.xml
30+
31+ - name : Upload artifacts
32+ uses : actions/upload-artifact@v2
33+ with :
34+ name : plugin
35+ path : PacketWrapper/target/PacketWrapper.jar
Original file line number Diff line number Diff line change 22<project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
33 xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" >
44 <modelVersion >4.0.0</modelVersion >
5- <groupId >com.comphenix.packetwrapper </groupId >
6- <artifactId >PacketWrapper </artifactId >
7- <version >1.16.4-R0.1- SNAPSHOT</version >
5+ <groupId >ru.progrm-jarvis.minecraft </groupId >
6+ <artifactId >packet-wrapper </artifactId >
7+ <version >1.16.4-SNAPSHOT</version >
88
99 <name >PacketWrapper</name >
1010
2727 </repositories >
2828
2929 <distributionManagement >
30- <repository >
31- <id >dmulloy2-repo</id >
32- <url >https://repo.dmulloy2.net/content/repositories/releases/</url >
33- </repository >
3430 <snapshotRepository >
35- <id >dmulloy2-repo </id >
36- <url >https://repo.dmulloy2.net /content/repositories/snapshots/</url >
31+ <id >sonatype-ossrh </id >
32+ <url >https://oss.sonatype.org /content/repositories/snapshots/</url >
3733 </snapshotRepository >
3834 </distributionManagement >
3935
4036 <dependencies >
4137 <dependency >
4238 <groupId >org.spigotmc</groupId >
4339 <artifactId >spigot</artifactId >
44- <version >${project.version} </version >
40+ <version >1.16.4-R0.1-SNAPSHOT </version >
4541 <scope >provided</scope >
4642 </dependency >
4743 <dependency >
You can’t perform that action at this time.
0 commit comments