Set a deploy command based on build hook

interesting, so the build command “sh ./build.sh” is the one specified in the netlify configuration for the Branch ?

INCOMING_HOOK_URL is the netlify environment variable that is accessible there?

in the then and else block I could just run the package.json scripts with “yarn run build:full”, “yarn run build:export” ?

That might be an awesome and easy solution if I understood it correctly. :smiley: