mirror of https://github.com/dapr/java-sdk.git
[1.14] Try fixing the release pipeline pt3 (#1475)
* move config to plugin section instead of pluginmanagmenet Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add curl to post Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add newline back Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add echo Signed-off-by: Cassandra Coyle <cassie@diagrid.io> * add newline back Signed-off-by: Cassandra Coyle <cassie@diagrid.io> --------- Signed-off-by: Cassandra Coyle <cassie@diagrid.io>
This commit is contained in:
parent
f341c68b3b
commit
97efe7316a
|
|
@ -175,10 +175,14 @@ jobs:
|
||||||
- name: Install jars
|
- name: Install jars
|
||||||
if: env.DEPLOY_OSSRH == 'true'
|
if: env.DEPLOY_OSSRH == 'true'
|
||||||
run: ./mvnw install -B -q
|
run: ./mvnw install -B -q
|
||||||
- name: Publish to ossrh
|
- name: Publish to Central Publisher Portal
|
||||||
if: env.DEPLOY_OSSRH == 'true'
|
if: env.DEPLOY_OSSRH == 'true'
|
||||||
run: |
|
run: |
|
||||||
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
|
echo ${{ secrets.GPG_PRIVATE_KEY }} | base64 -d > private-key.gpg
|
||||||
export GPG_TTY=$(tty)
|
export GPG_TTY=$(tty)
|
||||||
gpg --batch --import private-key.gpg
|
gpg --batch --import private-key.gpg
|
||||||
|
echo "Starting Maven deploy..."
|
||||||
./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy
|
./mvnw -V -B -Dgpg.skip=false -s settings.xml deploy
|
||||||
|
echo "Maven deploy completed"
|
||||||
|
curl -X POST https://central.sonatype.com/manual/upload/defaultRepository/io.dapr
|
||||||
|
echo "Manual upload completed"
|
||||||
|
|
|
||||||
24
pom.xml
24
pom.xml
|
|
@ -162,21 +162,21 @@
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
<artifactId>maven-resources-plugin</artifactId>
|
||||||
<version>${maven-resources-plugin.version}</version>
|
<version>${maven-resources-plugin.version}</version>
|
||||||
</plugin>
|
</plugin>
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonatype.central</groupId>
|
|
||||||
<artifactId>central-publishing-maven-plugin</artifactId>
|
|
||||||
<version>${central-publishing-maven-plugin.version}</version>
|
|
||||||
<extensions>true</extensions>
|
|
||||||
<configuration>
|
|
||||||
<publishingServerId>central</publishingServerId>
|
|
||||||
<autoPublish>true</autoPublish>
|
|
||||||
<waitUntil>published</waitUntil>
|
|
||||||
</configuration>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
</plugins>
|
||||||
</pluginManagement>
|
</pluginManagement>
|
||||||
<plugins>
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.sonatype.central</groupId>
|
||||||
|
<artifactId>central-publishing-maven-plugin</artifactId>
|
||||||
|
<version>${central-publishing-maven-plugin.version}</version>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<publishingServerId>central</publishingServerId>
|
||||||
|
<autoPublish>true</autoPublish>
|
||||||
|
<waitUntil>published</waitUntil>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.jacoco</groupId>
|
<groupId>org.jacoco</groupId>
|
||||||
<artifactId>jacoco-maven-plugin</artifactId>
|
<artifactId>jacoco-maven-plugin</artifactId>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue