diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9bb8fa14..c19ef7fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,18 +53,7 @@ jobs: - name: Release core projects to Maven Central portal run: | - for i in {1..3}; do - if ./gradlew jreleaserDeploy -PreleaseBundle=core --no-daemon --stacktrace; then - exit 0 - fi - if [ $i -eq 3 ]; then - echo "Failed release after 3 attempts" - exit 1 - fi - echo - echo "********************************************************************************** RELEASE ATTEMPT($((i + 1))) **********************************************************************************" - sleep 5 - done + ./infra/portalCentralDeploy.sh core 5 20 env: JRELEASER_GITHUB_TOKEN: ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }} JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }} @@ -75,18 +64,7 @@ jobs: - name: Release driver projects to Maven Central portal run: | - for i in {1..3}; do - if ./gradlew jreleaserDeploy -PreleaseBundle=driver --no-daemon --stacktrace; then - exit 0 - fi - if [ $i -eq 3 ]; then - echo "Failed release after 3 attempts" - exit 1 - fi - echo - echo "********************************************************************************** RELEASE ATTEMPT($((i + 1))) **********************************************************************************" - sleep 5 - done + ./infra/portalCentralDeploy.sh driver 5 20 env: JRELEASER_GITHUB_TOKEN: ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }} JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }} @@ -97,18 +75,7 @@ jobs: - name: Release template projects to Maven Central portal run: | - for i in {1..3}; do - if ./gradlew jreleaserDeploy -PreleaseBundle=template --no-daemon --stacktrace; then - exit 0 - fi - if [ $i -eq 3 ]; then - echo "Failed release after 3 attempts" - exit 1 - fi - echo - echo "********************************************************************************** RELEASE ATTEMPT($((i + 1))) **********************************************************************************" - sleep 5 - done + ./infra/portalCentralDeploy.sh template 5 20 env: JRELEASER_GITHUB_TOKEN: ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }} JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }} @@ -119,18 +86,7 @@ jobs: - name: Release transactioner projects to Maven Central portal run: | - for i in {1..3}; do - if ./gradlew jreleaserDeploy -PreleaseBundle=transactioner --no-daemon --stacktrace; then - exit 0 - fi - if [ $i -eq 3 ]; then - echo "Failed release after 3 attempts" - exit 1 - fi - echo - echo "********************************************************************************** RELEASE ATTEMPT($((i + 1))) **********************************************************************************" - sleep 5 - done + ./infra/portalCentralDeploy.sh transactioner 5 20 env: JRELEASER_GITHUB_TOKEN: ${{ secrets.FLAMINGOCK_JRELEASER_GITHUB_TOKEN }} JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.FLAMINGOCK_JRELEASER_MAVENCENTRAL_USERNAME }} diff --git a/infra/portalCentralDeploy.sh b/infra/portalCentralDeploy.sh index 3930b4bb..958eb9c2 100755 --- a/infra/portalCentralDeploy.sh +++ b/infra/portalCentralDeploy.sh @@ -20,7 +20,7 @@ validate_bundle "$1" echo "Releasing bundle[$1] to Central Portal with max attempts[$maxAttempts] and $waitingSeconds seconds delay" for (( i=1; i<=maxAttempts; i++ )); do - if ./gradlew jreleaserDeploy -PreleaseBundle="$1" --no-daemon --stacktrace; then + if ./gradlew jreleaserFullRelease -PreleaseBundle="$1" --no-daemon --stacktrace; then exit 0 fi if [ "$i" -eq "$maxAttempts" ]; then