Automate the process of upgrading the library included in the addon #242
Replies: 5 comments
-
We could also use @Confectrician |
Beta Was this translation helpful? Give feedback.
-
Do you speak about dynamically including it during the docs build? |
Beta Was this translation helpful? Give feedback.
-
Yes.
The largest part of the JS Scripting docs is in fact maintained at the openhab-js repo and has to be synced with the repo every time we release a new version of openhab-js and include it in the addon. I would like to dynamically include the part of the addon docs that is maintainer here in the addon docs during build time of the docs. |
Beta Was this translation helpful? Give feedback.
-
This should be possible in theory. But if i get it right we would then need to build both websites. The stable and latest docs. I still have to see, how we can change one addon-doc file in an easy to maintain way and will make some thoughts about this. |
Beta Was this translation helpful? Give feedback.
-
This sound good.
Yes. Stable need to use the docs matching the included version of the library, while latest needs to use the docs of the latest release of the library. |
Beta Was this translation helpful? Give feedback.
-
As already discussed in a previous discussion, automatically publishing new versions from the repo is no easy job because we have our CHANGELOG and so on.
But I see some other way to improve our publishing workflow: The process of upgrading the version included in the add-on.
On each new version published, we basically change the version numbers in the add-ons
pom.xml
and replace everything in the addons README that is under a comment (<!-- Paste the copied docs from openhab-js under this comment. -->
) with what‘s under a specific comment (<!-- Copy everything from here to update the JS Scripting documentation. -->
) in the library‘s README.We would need a CI action that is triggered when a new tag
v*
is pushed and that action needs the files mentioned above and open a PR to the addons repo.@rkoshak
Referencing https://community.openhab.org/t/pushover-notifications-from-javascript-rules/130697/15.
Beta Was this translation helpful? Give feedback.
All reactions