ci: implement automated releasing - #446
Open
karel-rehor wants to merge 7 commits into
Open
karel-rehor wants to merge 7 commits into
karel-rehor wants to merge 7 commits into
Conversation
* ci: start maven-release.yml workflow * chore: remove branches tag on release trigger * chore: add here doc for generating release.properties * chore: fix typo * chore: update pom.xml and deploy-settings.xml for fork. * chore: add simple volume check to workflow * chore: add release command to model release step * chore: reintroduce verify step to maven0release.yml workflow * docs: start RELEASE.md * docs: document gpg2 key generation in RELEASE.md. * chore: reintroduce checks in scripts/on-release.sh * docs: update temporary notes in CHANGELOG.md * chore: fix file permissions for on-release.sh * docs: temporary change to release date - for testing workflow. * docs: temporary update toe README.md to test workflow. * chore: set correct scm version an update RELEASE.md * chore: add scm/tag value check to on-release.sh * chore: fix dropped variable in on-release.sh * chore: temporarily change scm tag to test workflow failure. * chore: revert scm tag in pom.xml after workflow test proven correct. * chore: start workflow step Prepare next cycle. * chore: get correct TAG_NAME envar in workflow script. * chore: set next release cycle branch * chore: fix broken variable string in script. * chore: temporarily add debugging checks to workflow script. * chore: add automatic update to CHANGELOG.md in workflow. * chore: use correct envar in workflow script. * chore: fix formatting of next release CHANGELOG.md header * chore: setup automated git commands for next release cycle. * chore: setup github identity in release workflow prepare next cycle. * chore: fix push to origin in workstream Prepare next cycle. * chore: fix origin repository in workflow Prepare next release cycle. * chore: setup automatic PR for new release cycle. * chore: update permissions to allow creation of PR. * chore: remove automatic PR merge command - requires permission changes at org and project level to work. * chore: add site documentation update step. Update RELEASE.md * chore: add checks and updates to examples/pom.xml * chore: temporarily change examples dependency version to verify workflow. * chore: fix typo * chore: tidy maven-release.yml * chore: add check for remote next release branch. * docs: updated and proofed RELEASE.md * chore: clarify error message. * docs: add Maven Central step to releasing instructions. * chore: remove debug messages from on-release.sh * chore: remove debug messages from maven-release.yml * chore: troubleshoot document releasing step * chore: troubleshoot site publishing issue 02 * chore: troubleshoot site publishing - set to global. * chore: revert pubScmUrl - troubleshoot site publishing step. * chore: troubleshoot sit publishing 03 * chore: modify pubScmUrl to troubleshoot site publishing * chore: troubleshoot site publishing 05 * chore: revert troubleshoot changes * chore: troubleshoot site publishing 06 * chore: troubleshoot publish site documents. * chore: fix typo * chore: troubleshoot site document releasing 07 * chore: troubleshoot site documentation 08 * chore: troubleshoot publish sit documentation 09 * chore: troubleshoot publish sit documentation 10 * chore: troubleshoot publish sit documentation 11 * chore: troubleshoot publish sit documentation 12 * chore: troubleshoot publish sit documentation 13 * chore: troubleshoot publish sit documentation 14 * chore: troubleshoot publish sit documentation 15 * chore: troubleshoot publish sit documentation 16 * chore: troubleshoot publish sit documentation 17 * chore: troubleshoot publish sit documentation 18 * chore: remove debug commands from Publish documentation step. * chore: experim - try automatic PR creation. * chore: experim - try to create new PR 02 * chore: switch off automatic PR creation, requires special permissions. * chore: reactivate branch controls for prerelease. * chore: add env checks for matching scm values. * chore: fix path in script. * chore: remove debug of script ENV. * chore: remove commented nodes from pom.xml * docs: update RELEASE.md to match current workflow. * chore: remove unnecessary commands from workflow. * chore: prepare automated releasing branch for PR to upstream. * chore: remove experimental permissions from release workflow. * docs: update CHANGELOG.md * docs: lint fixes for RELEASE.md * docs: fix linting issues in RELEASE.md * docs: fixing lint issues in RELEASE.md 02 * docs: fix typos in RELEASE.md * chore: fixing lint issues in on-release.sh * chore: fix lint issues in maven-release.yml * chore: fix linter issue in maven-release.yml * chore: revise pom version values to match upstream HEAD. * docs: anonymize commands in RELEASE.md * chore: fix typo in on-releas.sh, add reminder to check RC_OR_BETA tagged releases. * chore: fix flaws in workflow and bash scripts. * chore: use more meaningful user.email in workflow. * chore: use current shell when calling on-release.sh in workflow * chore: fix RC or BETA release tag checks. * chore: update trigger, fix snapshot credentials, verify workfow envars. * chore: remove TODO and set RC_OR_BETA envar * chore: fix typos add TODOs for fixes in on-release.sh * chore: improve checks in on-release.sh * chore: better control sequencing, better checks in workflow. * chore: fine tune release workflow and script. * chore: remove snapshot checks, revert workflow check for next working snapshot branch. * chore: fine tune behavior for patch releases. * chore: update CHANGELOG.md, fix double negative and failure message. * chore: check gradle tag version in README.md * docs: clarify behavior of pre-release, beta/rc releases and patch releases in RELEASE.md. * chore: fix typo in ENVAR name and remove trim of release number. * chore: various updates to on-release.sh * chore: correct fix for on-release.sh * chore: script and doc tweaks. * chore: fix capitalization in user facing messages. * chore: fix capitalization in messages in workflow. * docs: add reminder about Gradle in RELEASE.md
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #446 +/- ##
=======================================
Coverage 88.73% 88.73%
=======================================
Files 21 21
Lines 1553 1553
Branches 281 281
=======================================
Hits 1378 1378
Misses 77 77
Partials 98 98 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proposed Changes
Sets up automated releasing.
nexus-staging-maven-pluginwith recommendedcentral-publishing-maven-pluginmaven-release.ymlon-release.shscript which ensures values inpom.xmlfiles and documentation match the release version and tag.pom.xml1.11.0 is incremented to 1.12.0-SNAPSHOT.Note this requires up-to-date values for action secrets (already configured in project - but not fully verified)
Checklist
[ ] A test has been added if appropriateN.A.