Skip to content

Commit

Permalink
run GitHub release action publish task without parallel (#1620)
Browse files Browse the repository at this point in the history
Motivation:
The sonatype repository appears to potentially exhibit a race condition when uploading
artifacts that causes multiple staging repositories to be created.
Modifications:
This change hopefully avoids the apparent race condition by executing publish tasks
serially.
Result:
Successful sonatype upload.
  • Loading branch information
bondolo authored Jun 16, 2021
1 parent b786924 commit 9aac76b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
# Build arguments to feed to the single gradlew publish command
if [ "${{ matrix.java }}" = "8" ]; then
FIRST_GRADLE_TARGETS=" clean check"
SECOND_GRADLE_TARGETS=" publish"
SECOND_GRADLE_TARGETS=" --no-parallel publish"
else
FIRST_GRADLE_TARGETS=""
SECOND_GRADLE_TARGETS=""
Expand Down
2 changes: 1 addition & 1 deletion scripts/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ set -eu

function usage() {
echo "Usage: $0 next_version"
echo "nex_version - the next version to update gradle.properties, expected -SNAPSHOT suffix"
echo "next_version - the next version to update gradle.properties, expected -SNAPSHOT suffix"
}

if [ "$#" -ne "1" ]; then
Expand Down

0 comments on commit 9aac76b

Please sign in to comment.