Skip to content
Snippets Groups Projects
Commit e6f28177 authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Update Algolia search index on master build only.

parent 7caded15
No related branches found
No related tags found
No related merge requests found
......@@ -4,8 +4,9 @@
publish = "web/public"
command = """
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
hugo"""
yarn --ignore-engines --ignore-optional --non-interactive
hugo
node_modules/.bin/hugo-algolia --toml -s"""
[context.production.environment]
HUGO_VERSION = "0.47"
......@@ -15,7 +16,7 @@
[context.deploy-preview]
command = """
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
yarn --ignore-engines --ignore-optional --non-interactive
hugo -b $DEPLOY_PRIME_URL"""
[context.deploy-preview.environment]
......@@ -23,11 +24,9 @@
[context.branch-deploy]
command = """
hugo version
git lfs fetch
yarn --ignore-engines --ignore-optional --non-interactive &&
hugo -b $DEPLOY_PRIME_URL
node_modules/.bin/hugo-algolia --toml -s"""
yarn --ignore-engines --ignore-optional --non-interactive
hugo -b $DEPLOY_PRIME_URL"""
[context.branch-deploy.environment]
HUGO_VERSION = "0.47"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment