This repository was archived by the owner on Apr 20, 2026. It is now read-only.
cd: create GH Actions workflow to prepare release on dispatch#169
Merged
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #169 +/- ##
============================================
+ Coverage 76.84% 76.86% +0.02%
- Complexity 296 297 +1
============================================
Files 42 42
Lines 1002 1003 +1
Branches 44 44
============================================
+ Hits 770 771 +1
Misses 207 207
Partials 25 25 ☔ View full report in Codecov by Sentry. |
e99bfca to
ce939e1
Compare
ce939e1 to
7d02fa8
Compare
sarlam
previously approved these changes
Jan 3, 2024
sarlam
approved these changes
Jan 3, 2024
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
With this PR, we step closer towards automating our release. I introduce the workflow
prepare-release, which automates the steps which had to be performed locally before.The workflow can be triggered as a
workflow_dispatchtogether with selecting whether it is aPATCH,MINORorMAJORrelease. When triggered, it computes the necessary versions via themaven-version-determiner.pyand callsmvn release:preparewith these versions.As the Maven release plugin pushes commits during its
preparestep, the action also tries to push to GitHub. To enable these pushes via the SSH connection, I use the foreign Actionwebfactory/ssh-agent. For this action, I generated an SSH keypair which I set as a deploy key and a secret.The idea is that the workflow
releasepicks up the new commits and publishes the build of the tagged commit as a new release on Maven Central.