Skip to content

Commit c7cd4e2

Browse files
committed
chore: fix release process
1 parent 70b1f8b commit c7cd4e2

3 files changed

Lines changed: 16 additions & 15 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}
2525
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2626
- name: Publish to Apache Maven Central
27-
run: mvn deploy -Pci-cd -DskipTests
27+
run: mvn deploy -Pci-cd
2828
env:
29-
NEXUS_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30-
NEXUS_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
32-
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
29+
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }}
30+
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
31+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3332
#MAVEN_GPG_KEY: ${{ secrets.GPG_PRIVATE_KEY }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
JAVA_HOME: /usr/lib/jvm/java-11-openjdk/
2121
with:
2222
release-branch-name: "main"
23-
maven-args: " -Dmaven.deploy.skip=true -DskipTests -Dmaven.plugin.validation=VERBOSE"
23+
maven-args: " -Dmaven.deploy.skip=true"
2424
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
2525
git-release-bot-name: "Release bot"
2626
git-release-bot-email: "benjamin.cavy@maif.fr"

pom.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@
3232
<tag>v2.0.0-beta1</tag>
3333
</scm>
3434

35+
<distributionManagement>
36+
<snapshotRepository>
37+
<id>ossrh</id>
38+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
39+
</snapshotRepository>
40+
<repository>
41+
<id>ossrh</id>
42+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/</url>
43+
</repository>
44+
</distributionManagement>
45+
3546

3647
<developers>
3748
<developer>
@@ -87,15 +98,6 @@
8798
<tagNameFormat>v@{project.version}</tagNameFormat>
8899
</configuration>
89100
</plugin>
90-
<plugin>
91-
<groupId>org.sonatype.central</groupId>
92-
<artifactId>central-publishing-maven-plugin</artifactId>
93-
<version>0.8.0</version>
94-
<extensions>true</extensions>
95-
<configuration>
96-
<publishingServerId>central</publishingServerId>
97-
</configuration>
98-
</plugin>
99101
</plugins>
100102
</build>
101103

0 commit comments

Comments
 (0)