Skip to content

Commit 20565b5

Browse files
committed
build: temporarily use personal GitHub Package Registry as a Maven repository
1 parent 66ce68d commit 20565b5

File tree

2 files changed

+39
-8
lines changed

2 files changed

+39
-8
lines changed

.github/workflows/deploy.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Deploy
2+
3+
on: [ push, workflow_dispatch ]
4+
5+
env:
6+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7+
8+
jobs:
9+
build:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Set up JDK 1.8
17+
uses: actions/setup-java@v1
18+
with:
19+
java-version: 1.8
20+
21+
- name: Cache Maven packages
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.m2
25+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: ${{ runner.os }}-m2
27+
28+
- name: Deploy
29+
run: mvn -f PacketWrapper/pom.xml verify
30+
31+
- name: Upload artifacts
32+
uses: actions/upload-artifact@v2
33+
with:
34+
name: plugin
35+
path: PacketWrapper/target/PacketWrapper.jar

PacketWrapper/pom.xml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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>
5+
<groupId>ru.progrm_jarvis.minecraft</groupId>
6+
<artifactId>PacketWrapper-BC</artifactId>
77
<version>1.16.4-R0.1-SNAPSHOT</version>
88

99
<name>PacketWrapper</name>
@@ -28,13 +28,9 @@
2828

2929
<distributionManagement>
3030
<repository>
31-
<id>dmulloy2-repo</id>
32-
<url>https://repo.dmulloy2.net/content/repositories/releases/</url>
31+
<id>github-packages</id>
32+
<url>https://maven.pkg.github.com/JarvisCraft/PacketWrapper</url>
3333
</repository>
34-
<snapshotRepository>
35-
<id>dmulloy2-repo</id>
36-
<url>https://repo.dmulloy2.net/content/repositories/snapshots/</url>
37-
</snapshotRepository>
3834
</distributionManagement>
3935

4036
<dependencies>

0 commit comments

Comments
 (0)