- Approve and merge Dependabot Pull Request ( triggers Stage 1 then 2 )
- Wait about an hour for builds and validation to occur.
- Change Prerelease to Release and set status as Latest ( triggers Stage 3 then 4 )
The package.json dependencies are used to manage the versions used within the release package. And Dependabot watches the versions, and creates a pull request if a version needs updating. Nothing else in package.json is used. If you manually update the dependencies, package-lock.json also needs updating.
Then once a change is made to package.json in the latest branch, originated by Depandabot, the stage 1 workflow will kick off.
Release TAG is created by reecetech/version-increment
, and is configured to increment the patch level every time, and not based on the package.json. To release a minor or major release, the manual workflow dispatch must be used, and package.json/package-lock.json manually updated.
Average Execution time: Approx 40 minutes
This job is triggered when package.json is updated on the latest branch, and the author of the change is dependabot.
- Determine release version based on either manual workflow input or the latest release.
- Build apt packages for x86_64, Arm ( RPI 32 bit), and aarch64 ( RPI 64 bit ).
- Apt packages are stored as an artifact against the workflow.
- Create a Pre-Release, and attach the artifacts.
Average Execution time: Approx 5 minutes
This job is triggered by the the publishing of a prerelease or the completion of the stage 1 workflow..
- This job checks that 3 apt packages are attached to the release ( x86_64, Arm ( RPI 32 bit), and aarch64 ( RPI 64 bit )).
- That the homebridge_*_amd64.deb apt package can be installed, and that homebridge starts.
Average Execution time: Approx 5 minutes
This job is triggered by the changing of the Release status from pre-release
to released
. Changing the prerelease to release is a manual step.
- Release assets are downloaded from the latest release
- Assets are promoted to
repo.homebridge.io
- Cloud flare cache is purged
Average Execution time: Approx 5 minutes
This job is triggered by the successful completion of step 3
- Download the current homebridge-apt-pkg for x86 and install.
- Check that homebridge starts