[build] # This assumes that the Zola site is in a docs folder. If it isn't, you don't need # to have a `base` variable but you do need the `publish` and `command` variables. publish = "public" command = "zola build" [build.environment] # Set the version name that you want to use and Netlify will automatically use it. ZOLA_VERSION = "0.17.2" # The magic for deploying previews of branches. # We need to override the base url with whatever url Netlify assigns to our # preview site. We do this using the Netlify environment variable # `$DEPLOY_PRIME_URL`. [context.deploy-preview] command = "zola build --base-url $DEPLOY_PRIME_URL" # curl -H "Content-Type: application/zip" \ # -H "Authorization: Bearer PERSONAL_ACCESS_TOKEN_FROM_STEP_1" \ # --data-binary "@FILE_NAME.zip" \ # https://api.netlify.com/api/v1/sites/SITE_NAME.netlify.com/deploys