Skip to content

Commit dbc0e9e

Browse files
committed
chore: add ci & increment version
1 parent ce981bb commit dbc0e9e

File tree

2 files changed

+41
-1
lines changed

2 files changed

+41
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
paths-ignore:
7+
- "**.md"
8+
- "renovate.json"
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Set up JDK 8
18+
uses: actions/setup-java@v4
19+
with:
20+
java-version: '8'
21+
distribution: 'adopt'
22+
server-id: azisaba
23+
- name: Build with Maven
24+
run: mvn -B package --file pom.xml
25+
- name: Prepare settings.xml
26+
run: |
27+
echo "<settings><servers><server><id>azisaba</id><username>${{ secrets.REPO_USERNAME }}</username><password>${{ secrets.REPO_PASSWORD }}</password></server></servers></settings>" > $HOME/.m2/settings.xml
28+
- name: Deploy
29+
run: mvn deploy

pom.xml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
<groupId>net.azisaba</groupId>
55
<artifactId>KDStatusReloaded</artifactId>
6-
<version>1.6.2</version>
6+
<version>1.6.3</version>
77

88
<name>${project.artifactId}</name>
99
<description>Record player kills and deaths</description>
@@ -150,4 +150,15 @@
150150
<scope>test</scope>
151151
</dependency>
152152
</dependencies>
153+
154+
<distributionManagement>
155+
<repository>
156+
<id>azisaba</id>
157+
<url>https://repo.azisaba.net/repository/maven-releases/</url>
158+
</repository>
159+
<snapshotRepository>
160+
<id>azisaba</id>
161+
<url>https://repo.azisaba.net/repository/maven-snapshots/</url>
162+
</snapshotRepository>
163+
</distributionManagement>
153164
</project>

0 commit comments

Comments
 (0)