Skip to content

Commit 3ea6718

Browse files
committed
Add deploy configuration
1 parent b527bc9 commit 3ea6718

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,4 +82,15 @@
8282
<version>1.3</version>
8383
</dependency>
8484
</dependencies>
85+
86+
<distributionManagement>
87+
<repository>
88+
<id>azisaba</id>
89+
<url>https://repo.azisaba.net/repository/maven-releases/</url>
90+
</repository>
91+
<snapshotRepository>
92+
<id>azisaba</id>
93+
<url>https://repo.azisaba.net/repository/maven-snapshots/</url>
94+
</snapshotRepository>
95+
</distributionManagement>
8596
</project>

0 commit comments

Comments
 (0)