mirror of
https://github.com/CarmJos/EasyConfiguration.git
synced 2026-06-05 02:58:20 +08:00
ci(deploy): Update central deployment ci
This commit is contained in:
@@ -94,14 +94,14 @@ jobs:
|
|||||||
java-version: '11'
|
java-version: '11'
|
||||||
distribution: 'adopt'
|
distribution: 'adopt'
|
||||||
cache: maven
|
cache: maven
|
||||||
server-id: ossrh
|
server-id: central
|
||||||
server-username: MAVEN_USERNAME
|
server-username: MAVEN_USERNAME
|
||||||
server-password: MAVEN_PASSWORD
|
server-password: MAVEN_PASSWORD
|
||||||
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
|
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }} # Value of the GPG private key to import
|
||||||
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
|
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
|
||||||
|
|
||||||
- name: "Central Deploy"
|
- name: "Central Deploy"
|
||||||
run: mvn -B -Possrh deploy --file pom.xml -DskipTests
|
run: mvn -B -Pcentral deploy --file pom.xml -DskipTests
|
||||||
env:
|
env:
|
||||||
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
|
MAVEN_USERNAME: ${{ secrets.OSSRH_USER }}
|
||||||
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }}
|
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASS }}
|
||||||
|
|||||||
@@ -274,18 +274,21 @@
|
|||||||
<profiles>
|
<profiles>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
<id>ossrh</id>
|
<id>central</id>
|
||||||
<distributionManagement>
|
<build>
|
||||||
<snapshotRepository>
|
<plugins>
|
||||||
<id>ossrh</id>
|
<plugin>
|
||||||
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
|
<groupId>org.sonatype.central</groupId>
|
||||||
</snapshotRepository>
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>0.7.0</version>
|
||||||
<repository>
|
<extensions>true</extensions>
|
||||||
<id>ossrh</id>
|
<configuration>
|
||||||
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
<publishingServerId>central</publishingServerId>
|
||||||
</repository>
|
<autoPublish>true</autoPublish>
|
||||||
</distributionManagement>
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
|
|
||||||
<profile>
|
<profile>
|
||||||
|
|||||||
Reference in New Issue
Block a user