Skip to content

Commit 3d1c4e4

Browse files
Add Github registry (#67)
1 parent 93506e1 commit 3d1c4e4

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
distribution: "temurin"
3939
java-version: 11
40-
- name: Build with Maven and Coverage/Sonar
41-
run: mvn deploy -Pdeploy-early-access
40+
- name: Deploy to GitHub
41+
run: mvn deploy -Pgithub
4242
env:
4343
GITHUB_TOKEN: ${{ github.token }}

pom.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,17 +74,6 @@
7474
<developerConnection>scm:git:git@github.com:project-openubl/xbuilder.git</developerConnection>
7575
</scm>
7676

77-
<distributionManagement>
78-
<snapshotRepository>
79-
<id>ossrh</id>
80-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
81-
</snapshotRepository>
82-
<repository>
83-
<id>ossrh</id>
84-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
85-
</repository>
86-
</distributionManagement>
87-
8877
<dependencies>
8978
<dependency>
9079
<groupId>org.projectlombok</groupId>
@@ -299,6 +288,16 @@
299288
</profile>
300289
<profile>
301290
<id>deploy</id>
291+
<distributionManagement>
292+
<snapshotRepository>
293+
<id>ossrh</id>
294+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
295+
</snapshotRepository>
296+
<repository>
297+
<id>ossrh</id>
298+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
299+
</repository>
300+
</distributionManagement>
302301
<build>
303302
<plugins>
304303
<!-- Source plugin -->
@@ -357,7 +356,7 @@
357356
</build>
358357
</profile>
359358
<profile>
360-
<id>deploy-early-access</id>
359+
<id>github</id>
361360
<distributionManagement>
362361
<repository>
363362
<id>github</id>

0 commit comments

Comments
 (0)