Use Experience Builder within a devops workflow to automatically build the app on commit.
- First it downloads the Experience Builder developer edition zip file using
curl
. - Then it unzips Experience Builder, does the NPM installs, copies the app directory into “server/public/apps/0”, copies the custom widgets.
- Then it runs
app-download.js
(new in Experience Builder v1.6), which generates the export (deployable) zip. - Finally, it takes the deployable zip, unzips it, and publishes it
The built app is deployed to GitHub Pages: https://gavinr-maps.github.io/experience-builder-devops-example/
More information on how the GitHub Action script generates the Experience Builder app export can be found here.