Skip to content

Commit 2bbf3ee

Browse files
committed
Simplify autopublication
1 parent e40b65c commit 2bbf3ee

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/cd-config.yml

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

4747
- name: Deploy Artifacts
4848
if: ${{ github.actor != 'dependabot[bot]' }}
49-
run: mvn deploy -P publish -Dcentral.publishing.autopublish=$AUTOPUBLISH
49+
run: mvn deploy -P publish
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') }}
5554

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

pom.xml

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

9190
<!-- sonar -->
9291
<sonar.coverage.jacoco.xmlReportPaths>${maven.multiModuleProjectDirectory}/reports/target/site/jacoco-merged/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
@@ -631,7 +630,7 @@
631630
<extensions>true</extensions>
632631
<configuration>
633632
<publishingServerId>central</publishingServerId>
634-
<autoPublish>${central.publishing.autopublish}</autoPublish>
633+
<autoPublish>true</autoPublish>
635634
<excludeArtifacts>
636635
<artifact>inrupt-client-examples-cli</artifact>
637636
<artifact>inrupt-client-examples-parent</artifact>

0 commit comments

Comments
 (0)