Skip to content
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
felix-seifert merged 3 commits into
masterfrom
felixs/prepare-release
Jan 3, 2024
Merged

cd: create GH Actions workflow to prepare release on dispatch#169
felix-seifert merged 3 commits into
masterfrom
felixs/prepare-release

Conversation

@felix-seifert

@felix-seifert felix-seifert commented Jan 2, 2024

Copy link
Copy Markdown
Contributor

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_dispatch together with selecting whether it is a PATCH, MINOR or MAJOR release. When triggered, it computes the necessary versions via the maven-version-determiner.py and calls mvn release:prepare with these versions.

As the Maven release plugin pushes commits during its prepare step, the action also tries to push to GitHub. To enable these pushes via the SSH connection, I use the foreign Action webfactory/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 release picks up the new commits and publishes the build of the tagged commit as a new release on Maven Central.

@codecov

codecov Bot commented Jan 2, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4a18372) 76.84% compared to head (f7e9f0e) 76.86%.
Report is 2 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

@felix-seifert felix-seifert force-pushed the felixs/prepare-release branch 23 times, most recently from e99bfca to ce939e1 Compare January 2, 2024 23:01
@felix-seifert felix-seifert force-pushed the felixs/prepare-release branch from ce939e1 to 7d02fa8 Compare January 2, 2024 23:12
@felix-seifert felix-seifert marked this pull request as ready for review January 3, 2024 08:59
@felix-seifert felix-seifert requested a review from a team January 3, 2024 09:00
@felix-seifert felix-seifert self-assigned this Jan 3, 2024
sarlam
sarlam previously approved these changes Jan 3, 2024

@sarlam sarlam left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks neat

Comment thread .github/workflows/maven-version-determiner.py Outdated
Comment thread .github/workflows/prepare-release.yml
@felix-seifert felix-seifert merged commit 091dd7a into master Jan 3, 2024
@felix-seifert felix-seifert deleted the felixs/prepare-release branch January 3, 2024 11:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants