add workflow for release automation #2171
Merged
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.
Added a workflow to automatically create releases on merging to master.
Implemented Process
master
triggers the action to create a releasemaster
master
only if the version in./settings/version-number
is a release version** version string are validated against Semantic Versioning format
e.g. release: 1.0.0, 3.5.0, 100.4.50000+metadata
e.g. prerelease: 1.0.0-alpha, 3.5.0-whatsoever.12, 100.4.50000-identifier.12+metadata
Prior to merging to master the version in
./settings/version-number
has to be updated to the next release version.If the version merged to master is still a prerelease version, the workflow is aborted.
Demo
AlvinSchiller/develop
results in Action is not triggerd.AlvinSchiller/develop
results in Action is not triggerd.AlvinSchiller/master
. Action is not triggerd (don't know why the last run from the commit is shown in checks)AlvinSchiller/master
results in Action run but cancels due to incorrect release version numberAlvinSchiller/develop
to change version number to release results in Action is not triggerd.AlvinSchiller/master
. Action is not triggerd (don't know why the last run from the commit is shown in checks)AlvinSchiller/master
results in Action run and creation of Tag and Release v2.5.0 including releasenotes and latest flagAlvinSchiller/master
results in Action run andupdates existing Release v2.5.0AlvinSchiller/master
to change version number to next bugfix release results in Action run and creation of Tag and Release v2.5.1 including releasenotes