Repository navigation
ci: release the jar when a tag is pushed - #22
Merged
Merged
Conversation
- Add a tag-triggered workflow that injects the version from the tag, runs the full build, checks --version and creates a draft release with the jar, like the PHP release workflow. - Print the build version for --version instead of a hard-coded 0.0.1, reusing the build properties the SARIF report already read. - Update GitHub Actions to the Node.js 24 versions and pin the runner. - Document the release download in the README.
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.
Summary
release.yml: on a tag push it sets the Maven version from the tag, runs./mvnw verify, checks that--versionprints the tag, and creates a draft GitHub release withcognitive-analysis.jarand generated notes (same mechanism as the PHP tool).--versionnow prints the build version (was hard-coded0.0.1).BuildInfoholds the lookup the SARIF report already used.1.0.0-SNAPSHOT.tests.yml: checkout v7, setup-java v6, upload-artifact v7,ubuntu-24.04.Test plan
./mvnw verifygreen (tests, JaCoCo gate, PIT)BuildInfoTest: filtered version, missing and placeholder values,--versionoutputversions:set -DnewVersion=1.0.0then the jar printscognitive-analysis 1.0.0