blob: b0a25b9920deb3ba4e60f4192c332e7c6b14ff4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
[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
|