Skip to content

Commit c972602

Browse files
committed
Next Tries
1 parent c8b3e76 commit c972602

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/publish-packages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
gpg-passphrase: GPG_PASSPHRASE
2222

2323
- name: Deploy to Maven Central
24-
run: mvn -f PgBulkInsert/pom.xml -s .github/workflows/maven-settings.xml -Prelease -DskipTests
24+
run: mvn mvn release:prepare release:perform -Darguments=-DskipTests=true -f PgBulkInsert/pom.xml -s .github/workflows/maven-settings.xml
2525
env:
2626
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
2727
MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}

PgBulkInsert/pom.xml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,27 @@
5151
<id>release</id>
5252
<build>
5353
<plugins>
54+
<plugin>
55+
<!-- Fixing version & activating "release" profile for those who use release plugin -->
56+
<groupId>org.apache.maven.plugins</groupId>
57+
<artifactId>maven-release-plugin</artifactId>
58+
<version>3.1.1</version>
59+
<configuration>
60+
<autoVersionSubmodules>true</autoVersionSubmodules>
61+
62+
<!-- Forward compatibility: "release-profile" will be removed from super POM.
63+
It's better to define javadocs, sources, signing, etc. in an independent "release" profile. -->
64+
<useReleaseProfile>false</useReleaseProfile>
65+
<releaseProfiles>release</releaseProfiles>
66+
</configuration>
67+
</plugin>
5468
<plugin>
5569
<groupId>org.sonatype.central</groupId>
5670
<artifactId>central-publishing-maven-plugin</artifactId>
57-
<version>0.6.0</version>
71+
<version>0.8.0</version>
5872
<extensions>true</extensions>
5973
<configuration>
6074
<publishingServerId>central</publishingServerId>
61-
<autoPublish>true</autoPublish>
6275
</configuration>
6376
</plugin>
6477

0 commit comments

Comments
 (0)