Skip to content

Commit 7fabca6

Browse files
committed
🚧 try(ci): try publish
1 parent c9e2ed7 commit 7fabca6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

‎.github/workflows/publish.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2525

2626
- name: Publish
27-
run: mvn deploy
27+
run: mvn deploy -P release
2828
env:
2929
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3030
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}

‎pom.xml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,17 @@
7272
</execution>
7373
</executions>
7474
</plugin>
75+
<plugin>
76+
<groupId>org.sonatype.central</groupId>
77+
<artifactId>central-publishing-maven-plugin</artifactId>
78+
<version>0.9.0</version>
79+
<extensions>true</extensions>
80+
<configuration>
81+
<publishingServerId>central</publishingServerId>
82+
<autoPublish>true</autoPublish>
83+
<waitUntil>published</waitUntil>
84+
</configuration>
85+
</plugin>
7586
</plugins>
7687
</build>
7788
</profile>

0 commit comments

Comments
 (0)