@@ -24,72 +24,19 @@ build-ci:
2424test-ci :
2525 ./ mvnw -B -ntp -s .build/ ci-maven-settings.xml clean verify
2626
27- # Perform a release
28- perform-release : pre-release release post-release
29- @ echo " 🎉 Successfully released Smallrye Reactive Messaging ${RELEASE_VERSION} 🚀"
30-
31- # Initialize Git
32- init-git :
33- @ echo " 🔀 Git setup"
34- git config --global user.name " smallrye-ci"
35- git config --global user.email " smallrye@googlegroups.com"
36-
37- # Steps before releasing
38- pre-release : init-git
39- @ echo " 🚀 Pre-release steps..."
40- @ if [[ -z " ${RELEASE_TOKEN}" ]]; then exit 1 ; fi
41- @ if [[ -z " ${RELEASE_VERSION}" ]]; then exit 1 ; fi
42- @ echo " Pre-release verifications"
43- jbang .build/ PreRelease.java --token=${RELEASE_TOKEN} --release-version=${RELEASE_VERSION}
44- @ echo " Bump project version to ${RELEASE_VERSION}"
45- ./ mvnw -B -ntp versions:set -DnewVersion=${RELEASE_VERSION} -DgenerateBackupPoms=false
46- @ echo " Check that the project builds (no tests)"
47- ./ mvnw -B -ntp clean install -Prelease -DskipTests
48- @ echo " Check that the website builds"
49- - [[ ${DEPLOY_WEBSITE} == " true" ]] && cd documentation && pipenv install && pipenv run mkdocs build
50-
51- # Steps to release
52- release : pre-release
53- @ echo " 🚀 Release steps..."
54- @ if [[ -z " ${JRELEASER_TAG_NAME}" ]]; then exit 1 ; fi
55- @ if [[ -z " ${JRELEASER_PREVIOUS_TAG_NAME}" ]]; then exit 1 ; fi
56- @ if [[ -z " ${JRELEASER_GITHUB_TOKEN}" ]]; then exit 1 ; fi
57- @ echo " Commit release version and push upstream"
58- git commit -am " [RELEASE] - Bump version to ${RELEASE_VERSION}"
59- git push
60- jbang .build/ CompatibilityUtils.java extract
61- @ echo " Call JReleaser"
62- ./ mvnw -B -ntp jreleaser:full-release -Pjreleaser -pl :smallrye-reactive-messaging
63- - [[ ${DEPLOY_WEBSITE} == " true" ]] && just deploy-docs
64- @ echo " Bump to 999-SNAPSHOT and push upstream"
65- ./ mvnw -B -ntp versions:set -DnewVersion=999 -SNAPSHOT -DgenerateBackupPoms=false
66- git commit -am " [RELEASE] - Next development version: 999-SNAPSHOT"
67- git push
68-
69- # Deploy to Maven Central
70- deploy-to-maven-central :
71- @ echo " 🔖 Deploy to Maven Central"
72- ./ mvnw -B -ntp deploy -Prelease -DskipTests
73-
74- # Steps post-release
75- post-release :
76- @ echo " 🚀 Post-release steps..."
77- - [[ ${CLEAR_REVAPI} == " true" ]] && just clear-revapi
78-
7927# Update Pulsar Connector Configuration Documentation
8028update-pulsar-config-docs :
8129 @ echo " 📝 Updating Pulsar connector configuration docs"
8230 jbang .build/ PulsarConfigDoc.java -d documentation/ src/ main/ docs/ pulsar/ config
8331
8432# Deploy documentation
85- deploy-docs :
33+ deploy-docs version :
8634 #!/usr/bin/env bash
8735 echo " 📝 Deploying documentation to GitHub"
88- if [[ -z " ${RELEASE_VERSION}" ]]; then exit 1 ; fi
8936 ./ mvnw -B -ntp clean compile -pl documentation
9037 cd documentation
9138 pipenv install
92- pipenv run mike deploy --update-aliases --push --remote origin " ${RELEASE_VERSION}" " latest"
39+ pipenv run mike deploy --update-aliases --push --remote origin {{ version }} " latest"
9340
9441# Clear RevAPI justifications
9542clear-revapi :
0 commit comments