Skip to content

Commit 8c699e3

Browse files
authored
Skip Checkstyle for Local Staging (#271)
Motivation: Local staging phase causes release action to fail due to Checkstyle errors. Modifications: Checkstyle is now skipped. Result: Local staging operates smoothly.
1 parent 8641fc4 commit 8c699e3

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/scripts/release_rollback.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
set -e
1818

19-
TAG=$(grep scm.tag= release.properties | cut -d'=' -f2)
19+
TAG=$(grep scm.tag= r2dbc-mysql/release.properties | cut -d'=' -f2)
2020
git remote set-url origin git@github.com:asyncer-io/r2dbc-mysql.git
2121
git fetch
2222
git checkout "$1"

.github/workflows/cd-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
working-directory: ./prepare-workspace/
129129
run: |
130130
cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import
131-
./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 }}"
131+
./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 -Dcheckstyle.skip -Dgpg.passphrase="${{ secrets.GPG_PASSPHRASE }}" -Dgpg.keyname="${{ secrets.GPG_KEY_NAME }}"
132132
133133
- name: Prepare Internal Dependencies
134134
run: ./mvnw -B -ntp -pl build-tools clean install -DskipTests -Dcheckstyle.skip
@@ -141,5 +141,5 @@ jobs:
141141
- name: Rollback Release
142142
working-directory: ./prepare-workspace/
143143
if: ${{ failure() }}
144-
run: ./.github/scripts/release_rollback.sh
144+
run: ./.github/scripts/release_rollback.sh trunk
145145

0 commit comments

Comments
 (0)