-
-
Notifications
You must be signed in to change notification settings - Fork 692
How To: openHAB Release
This page will summarize the steps needed to be done, when a new openHAB version is released.
-
Rename the
final-stable
branch tofinal-${last_stable_version}
in the openhab-docs repo -
Rename the
final
branch tofinal-stable
-
Create a new
final
branch fromfinal-stable
-
Create the archived website for the former stable version:
-
Configure DNS & CloudFlare for the
v${last_stable_version}.openhab.org
domain (e.g.v32.openhab.org
). It should point toopenhab-v{last_stable_version}.netlify.app
-
On Netlify, on the main page (Team Overview), click the Add new site button then Import an existing project
-
Click the GitHub button, authorize Netlify on GitHub if asked
-
Change the organization dropdown to openhab and choose the website repository
-
Fill out the details:
-
Branch to deploy:
main
-
Base directory: leave blank
-
Build command:
npm run build
-
Publish directory:
vuepress
-
Click Show advanced and add the following environment variables:
-
NODE_OPTIONS
:--max_old_space_size=16000
-
NODE_VERSION
:14.15.2
-
OH_DOCS_VERSION
:final-${last_stable_version}.x
(e.g.final-3.2.x
)
-
-
-
Click Deploy site
-
While the site is deploying, click Site settings then Change site name and change the automatically generated name to
openhab-v{last_stable_version}
-
Back in Site overview: Click Domain settings then Add custom domain (or Add domain alias), type in the custom domain (
v{last_stable_version}.openhab.org
). The message will be somewhat confusing but click onAdd domain
anyway -
After the site is properly built and accessible under the custom domain, still in Site settings, under Build & Deploy, in the Build settings section, click Edit Settings and choose Stop builds (the archived websites will only be built on demand) then Save.
-
-
Change the info in the frontmatter in the
download/README.md
file on the website repository. Add the new former stable version underpreviousVersions
, comment out thecurrentMilestoneVersion
(as there's no current milestone just after a release), and update the stable and snapshot version numbers. That will trigger another build of the main and "next" versions of the website.
Glossary:
-
final-stable
is the branch for current release -
final
is the branch for the current snapshot version