You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Allowed building dev version of the API references from Github Actions (#3173)
* Allowed building dev version of the API references from Github Actions
* Added GitHub token to the workflow
* Added Readme
* Update .github/workflows/api_refs.yaml
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
* Apply suggestion from @adriendupuis
---------
Co-authored-by: Adrien Dupuis <61695653+adriendupuis@users.noreply.github.com>
REST_API_OPENAPI_FILE_JSON=${5:-./docs/api/rest_api/rest_api_reference/openapi.json};# Path to the REST API OpenAPI spec file
10
10
11
11
DXP_EDITION='commerce';# Edition from and for which the Reference is built
12
-
DXP_VERSION='5.0.*';# Version from and for which the Reference is built
12
+
DXP_VERSION="${DXP_VERSION:-5.0.*}";# Version from and for which the Reference is built; can be overridden by the DXP_VERSION env var (e.g. v5.0.x-dev for a dev build)
13
13
DXP_ADD_ONS=(automated-translation rector integrated-help fieldtype-richtext-rte connector-anthropic connector-gemini shopping-list cdp connector-raptor connector-quable mcp);# Packages not included in $DXP_EDITION but added to the Reference, listed without their vendor "ibexa"
14
14
DXP_EDITIONS=(oss headless experience commerce);# Available editions ordered by ascending capabilities
15
15
SF_VERSION='7.4';# Symfony version used by Ibexa DXP
@@ -26,8 +26,8 @@ OPENAPI_FIX="$(pwd)/tools/api_refs/openapi.php"; # A script editing and fixing f
26
26
PHP_BINARY="php -d error_reporting=`php -r 'echo E_ALL & ~E_DEPRECATED;'`";# Avoid depreciation messages from phpDocumentor/Reflection/issues/529 when using PHP 8.2 or higher
27
27
TMP_DXP_DIR=/tmp/ibexa-dxp-phpdoc;# Absolute path of the temporary directory in which Ibexa DXP will be installed and the PHP API Reference built
28
28
FORCE_DXP_INSTALL=1;# If 1, empty the temporary directory, install DXP from scratch, build, remove temporary directory; if 0, potentially reuse the DXP already installed in temporary directory, keep temporary directory for future uses.
29
-
BASE_DXP_BRANCH='';# Branch from and for which the Reference is built when using a dev branch as version
30
-
VIRTUAL_DXP_VERSION='';# Version for which the reference is supposedly built when using dev branch as version
29
+
BASE_DXP_BRANCH="${BASE_DXP_BRANCH:-}";# Branch from and for which the Reference is built when using a dev branch as version; can be overridden by the BASE_DXP_BRANCH env var
30
+
VIRTUAL_DXP_VERSION="${VIRTUAL_DXP_VERSION:-}";# Version for which the reference is supposedly built when using dev branch as version; can be overridden by the VIRTUAL_DXP_VERSION env var
0 commit comments