Skip to content

Commit e40b65c

Browse files
committed
Adjust central publication configuration
1 parent 8a45198 commit e40b65c

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/cd-config.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@ jobs:
4646

4747
- name: Deploy Artifacts
4848
if: ${{ github.actor != 'dependabot[bot]' }}
49-
run: mvn deploy -P publish
49+
run: mvn deploy -P publish -Dcentral.publishing.autopublish=$AUTOPUBLISH
5050
env:
5151
MAVEN_REPO_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
5252
MAVEN_REPO_TOKEN: ${{ secrets.SONATYPE_TOKEN }}
5353
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
54+
AUTOPUBLISH: ${{ true != contains(github.ref, 'refs/tags/inrupt-client') }}
5455

5556
- name: Sonar Analysis
5657
if: ${{ github.actor != 'dependabot[bot]' }}

pom.xml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
<archetype.test.skip>true</archetype.test.skip>
8787
<nvd.api.key />
8888
<nvd.api.datafeed />
89+
<central.publishing.autopublish>false</central.publishing.autopublish>
8990

9091
<!-- sonar -->
9192
<sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/reports/target/site/jacoco-merged/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
@@ -630,7 +631,23 @@
630631
<extensions>true</extensions>
631632
<configuration>
632633
<publishingServerId>central</publishingServerId>
633-
<autoPublish>true</autoPublish>
634+
<autoPublish>${central.publishing.autopublish}</autoPublish>
635+
<excludeArtifacts>
636+
<artifact>inrupt-client-examples-cli</artifact>
637+
<artifact>inrupt-client-examples-parent</artifact>
638+
<artifact>inrupt-client-examples-spring-web</artifact>
639+
<artifact>inrupt-client-examples-springboot</artifact>
640+
<artifact>inrupt-client-examples-webapp</artifact>
641+
<artifact>inrupt-client-integration-base-tests</artifact>
642+
<artifact>inrupt-client-integration-openid-tests</artifact>
643+
<artifact>inrupt-client-integration-tests</artifact>
644+
<artifact>inrupt-client-integration-uma-tests</artifact>
645+
<artifact>inrupt-client-performance-base-tests</artifact>
646+
<artifact>inrupt-client-performance-tests</artifact>
647+
<artifact>inrupt-client-performance-uma-tests</artifact>
648+
<artifact>inrupt-client-report</artifact>
649+
<artifact>inrupt-client-test</artifact>
650+
</excludeArtifacts>
634651
</configuration>
635652
</plugin>
636653
</plugins>

0 commit comments

Comments
 (0)