Skip to content

Commit

Permalink
build: using script with jreleaserFullRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
dieppa committed Nov 29, 2024
1 parent 7baabdc commit 1cdc963
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 49 deletions.
52 changes: 4 additions & 48 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down
2 changes: 1 addition & 1 deletion infra/portalCentralDeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1cdc963

Please sign in to comment.