Skip to content

create more robust ci-cd pipeline#195

Merged
alexrobin merged 10 commits into
masterfrom
github-ci-improvements
Apr 30, 2026
Merged

create more robust ci-cd pipeline#195
alexrobin merged 10 commits into
masterfrom
github-ci-improvements

Conversation

@lemonman96

Copy link
Copy Markdown
Collaborator

No description provided.

@lemonman96

lemonman96 commented Apr 7, 2026

Copy link
Copy Markdown
Collaborator Author

New pipeline changes to allow more control over publishing/enable auto snapshot publishing. Essentially there are 3 cases:

Manual workflow and run_all is true: publish all packages with version described in build.gradle

Manual workflow and run_all is false: publish subproject specified in run_specificwith version described in build.gradle. run_specific should be of the form sensorhub-*

Workflow started via push (or merge) to master: Changes are detected and set difference is performed against the project list. Resulting list of projects are automatically published with -SNAPSHOT appended to the version number described in the build.gradle

In this way version numbers are still driven via the individual build.gradle files, so manual updates to these version numbers must be in place before doing a non snapshot release.

@lemonman96 lemonman96 marked this pull request as ready for review April 7, 2026 17:22
@lemonman96 lemonman96 self-assigned this Apr 7, 2026

@nickgaray nickgaray left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Does this mean then that on a merge to master all changed modules will be published? Will this work for packages with classifiers as well?

@lemonman96

Copy link
Copy Markdown
Collaborator Author

Does this mean then that on a merge to master all changed modules will be published? Will this work for packages with classifiers as well?

Yes, and as long as the classifiers are added during the publish task then those should be published as well. Changed modules are appended with -SNAPSHOT and are allowed overwrites

@lemonman96

Copy link
Copy Markdown
Collaborator Author

@alexrobin @nickgaray I was able to test this via running workflows through my branch:

example single project publish:
https://github.com/opensensorhub/osh-addons/actions/runs/25011859652

example multi project publish:
https://github.com/opensensorhub/osh-addons/actions/runs/25012979259

this pr is fully ready for merge

@lemonman96 lemonman96 requested a review from nickgaray April 27, 2026 18:47
@alexrobin alexrobin merged commit 3c77a04 into master Apr 30, 2026
175 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants