Skip to content

Commit 01c38b8

Browse files
Merge pull request #15 from MetricsHub/feature/update-deployment
Updated to use MetricsHub GitHub Actions Workflow.
2 parents 80ececd + 7ea2093 commit 01c38b8

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ permissions:
1414

1515
jobs:
1616
deploy:
17-
uses: sentrysoftware/workflows/.github/workflows/maven-central-deploy.yml@main
17+
uses: metricshub/workflows/.github/workflows/maven-central-deploy.yml@main
1818
with:
1919
jdkVersion: "17"
2020
secrets: inherit

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ permissions:
2323

2424
jobs:
2525
release:
26-
uses: sentrysoftware/workflows/.github/workflows/maven-central-release.yml@main
26+
uses: metricshub/workflows/.github/workflows/maven-central-release.yml@main
2727
with:
2828
releaseVersion: ${{ inputs.releaseVersion }}
2929
developmentVersion: ${{ inputs.developmentVersion }}

pom.xml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -410,11 +410,13 @@
410410
<id>maven-central</id>
411411
<activation>
412412
<property>
413-
<name>env.OSSRH_TOKEN</name>
413+
<name>env.MAVEN_CENTRAL_TOKEN</name>
414414
</property>
415415
</activation>
416+
<properties>
417+
<maven.deploy.skip>true</maven.deploy.skip>
418+
</properties>
416419
<build>
417-
418420
<plugins>
419421

420422
<!-- Replaces the default Maven Deploy plugin -->
@@ -424,7 +426,7 @@
424426
<artifactId>central-publishing-maven-plugin</artifactId>
425427
<extensions>true</extensions>
426428
<configuration>
427-
<publishingServerId>ossrh</publishingServerId>
429+
<publishingServerId>central</publishingServerId>
428430
<autoPublish>${env.AUTO_RELEASE_AFTER_CLOSE}</autoPublish>
429431
<centralSnapshotsUrl>https://central.sonatype.com/repository/maven-snapshots/</centralSnapshotsUrl>
430432
</configuration>

0 commit comments

Comments
 (0)