diff --git a/action.yml b/action.yml index c4bf1c6..b418ca0 100644 --- a/action.yml +++ b/action.yml @@ -35,6 +35,10 @@ inputs: description: Command to install dependencies required: false default: "" + netlify_path: + description: Path to netlify CLI binary + required: false + default: "netlify" build_command: description: Command to build static website required: false @@ -78,6 +82,7 @@ runs: MONOREPO_PACKAGE: ${{ inputs.monorepo_package }} DEBUG: ${{ inputs.debug }} COMMAND_EXTRA_FLAGS: ${{ inputs.command_extra_flags }} + NETLIFY_PATH: ${{ inputs.netlify_path }} branding: icon: activity diff --git a/entrypoint.sh b/entrypoint.sh index 6029fa1..fdf12e8 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,7 +26,7 @@ export NETLIFY_SITE_ID="${NETLIFY_SITE_ID}" export NETLIFY_AUTH_TOKEN="${NETLIFY_AUTH_TOKEN}" # command based on https://cli.netlify.com/commands/deploy -COMMAND="netlify deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\"" +COMMAND="${NETLIFY_PATH} deploy --dir=${BUILD_DIRECTORY} --functions=${FUNCTIONS_DIRECTORY} --message=\"${NETLIFY_DEPLOY_MESSAGE}\"" if [[ "${NETLIFY_DEPLOY_TO_PROD}" == "true" ]] then