Skip to content

Commit 4fca8b3

Browse files
author
Philipp Karlsson
committed
Fixing release process
1 parent ae8903e commit 4fca8b3

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

.github/workflows/default.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,8 @@ jobs:
389389
- name: Deploy to Maven Central
390390
run: ./mvnw -B deploy -Pci,-ci-sdk,-ci-jira-applink,-ci-ktor -DskipTests "-Djira.service.management.license=${{ secrets.JSM_DC_DEMO_LICENSE }}" "-Dconfluence.license=${{ secrets.CONFLUENCE_DC_DEMO_LICENSE }}"
391391
env:
392-
SONATYPE_USERNAME: ${{ vars.SONATYPE_S01_TOKEN_USER }}
393-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_S01_TOKEN_PASSWORD }}
392+
SONATYPE_USERNAME: ${{ vars.SONATYPE_CENTRAL_TOKEN_USER }}
393+
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_CENTRAL_TOKEN_PASSWORD }}
394394
SIGNING_PASSWORD: ${{ secrets.DEV_LINKED_PLANET_PGP_KEY_PASSPHRASE }}
395395

396396
prepare-next-snapshot:

pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,27 @@
348348
</execution>
349349
</executions>
350350
</plugin>
351+
352+
<!-- DEPLOYMENT -->
353+
<!-- see https://central.sonatype.org/publish/publish-maven/#distribution-management-and-authentication -->
354+
<plugin>
355+
<groupId>org.sonatype.plugins</groupId>
356+
<artifactId>nexus-staging-maven-plugin</artifactId>
357+
<executions>
358+
<execution>
359+
<id>default-deploy</id>
360+
<phase>deploy</phase>
361+
<goals>
362+
<goal>deploy</goal>
363+
</goals>
364+
</execution>
365+
</executions>
366+
<configuration>
367+
<serverId>maven-central-nexus</serverId>
368+
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
369+
<autoReleaseAfterClose>true</autoReleaseAfterClose>
370+
</configuration>
371+
</plugin>
351372
</plugins>
352373
</build>
353374
</profile>

0 commit comments

Comments
 (0)