Skip to content

Commit f8832dc

Browse files
jchrysmirromutth
authored andcommitted
Fix Deploy
Motivation: Deploy Failure Modification: Prepare internal dependencies before deploy Result: Fix Resolves #249
1 parent 140c634 commit f8832dc

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/cd-release.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,9 +130,12 @@ jobs:
130130
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
131131
./mvnw -B -ntp -am -pl r2dbc-mysql clean javadoc:jar package gpg:sign org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DnexusUrl=https://s01.oss.sonatype.org -DserverId=ossrh-staging -DaltStagingDirectory=/home/runner/local-staging -DskipRemoteStaging=true -DskipTests=true -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -Dgpg.keyname="${{ secrets.GPG_KEY_NAME }}"
132132
133+
- name: Prepare Internal Dependencies
134+
run: ./mvnw -B -ntp -pl build-tools clean install -DskipTests -Dcheckstyle.skip
135+
133136
- name: Deploy Local Staged Artifacts
134137
working-directory: ./prepare-workspace/
135-
run: ./mvnw -B -ntp -pl r2dbc-mysql --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DnexusUrl=https://s01.oss.sonatype.org -DserverId=ossrh-staging -DaltStagingDirectory=/home/runner/local-staging -DskipStagingRepositoryClose=true
138+
run: ./mvnw -B -ntp -pl r2dbc-mysql --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DnexusUrl=https://s01.oss.sonatype.org -DserverId=ossrh-staging -DaltStagingDirectory=/home/runner/local-staging -DskipStagingRepositoryClose=true -Dcheckstyle.skip
136139

137140

138141
- name: Rollback Release

.github/workflows/cd-snapshot.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,11 @@ jobs:
5151
"password": "${{ secrets.OSSRH_PASSWORD }}"
5252
}]
5353
54+
- name: Prepare Internal Dependencies
55+
run: ./mvnw -B -ntp -pl build-tools clean install -DskipTests -Dcheckstyle.skip
56+
5457
- name: Deploy Local Staging
55-
run: ./mvnw -B -ntp -pl r2dbc-mysql clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/home/runner/local-staging -DskipRemoteStaging=true -DskipTests=true
58+
run: ./mvnw -B -ntp -pl r2dbc-mysql clean package org.sonatype.plugins:nexus-staging-maven-plugin:deploy -DaltStagingDirectory=/home/runner/local-staging -DskipRemoteStaging=true -DskipTests=true -Dcheckstyle.skip=true
5659

5760
- name: Deploy Local Staged Artifacts
5861
run: ./mvnw -B -pl r2dbc-mysql --file pom.xml org.sonatype.plugins:nexus-staging-maven-plugin:deploy-staged -DaltStagingDirectory=/home/runner/local-staging

0 commit comments

Comments
 (0)