Skip to content

Commit 22fa93e

Browse files
authored
FDP-3269 create the setup for the package. (#1614)
Signed-off-by: JKruisheer <kruisheer@outlook.com>
1 parent 9062f9c commit 22fa93e

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed

.github/settings.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
2+
<servers>
3+
<server>
4+
<id>github</id>
5+
<username>${env.GITHUB_ACTOR}</username>
6+
<password>${env.GITHUB_TOKEN}</password>
7+
</server>
8+
</servers>
9+
</settings>

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ jobs:
4949
with:
5050
name: warFiles
5151
path: staging
52+
- name: Publish Maven artifacts
53+
run: ./mvnw -pl osgp/shared/osgp-dto deploy --settings .github/settings.xml
54+
if: contains(github.ref, 'release') || contains(github.ref, 'development')
55+
env:
56+
GITHUB_ACTOR: ${{ github.actor }}
57+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5258

5359
docker:
5460
name: Building docker images

osgp/shared/osgp-dto/pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ SPDX-License-Identifier: Apache-2.0
2323
<relativePath>../parent-shared/pom.xml</relativePath>
2424
</parent>
2525

26+
<distributionManagement>
27+
<repository>
28+
<id>github</id>
29+
<url>https://maven.pkg.github.com/osgp/open-smart-grid-platform</url>
30+
</repository>
31+
</distributionManagement>
32+
2633
<dependencies>
2734
<dependency>
2835
<groupId>commons-codec</groupId>

0 commit comments

Comments
 (0)