Skip to content

Commit 793a080

Browse files
committed
add upload to pnx repo
1 parent c995d17 commit 793a080

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/pnxrepo.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Upload to PNX Repo
2+
on:
3+
push:
4+
branches:
5+
- master
6+
workflow_dispatch:
7+
8+
jobs:
9+
deploy:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v4
15+
16+
- name: Set up JDK
17+
uses: actions/setup-java@v4
18+
with:
19+
distribution: temurin
20+
java-version: 21
21+
22+
- name: Configure Maven settings
23+
uses: s4u/maven-settings-action@v4.0.0
24+
with:
25+
servers: |
26+
[{ "id": "pnx-repo", "username": "${{ secrets.PNX_REPO_USERNAME }}", "password": "${{ secrets.PNX_REPO_PASSWORD }}" }]
27+
28+
- name: Deploy to PNX Repo
29+
run: |
30+
mvn deploy

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474
</plugins>
7575
</build>
7676

77+
<distributionManagement>
78+
<repository>
79+
<id>pnx-repo</id>
80+
<url>https://repo.powernukkitx.org/releases</url>
81+
</repository>
82+
</distributionManagement>
83+
7784
<dependencies>
7885
<dependency>
7986
<groupId>org.projectlombok</groupId>

0 commit comments

Comments
 (0)