Skip to content
Discussion options

You must be logged in to vote

This is how I do it to set the branch:

# config.yml

backend:
  name: git-gateway
  branch: __BRANCH__
# build.sh

sed -i "s|__BRANCH__|${HEAD}|g" static/admin/config.yml
hugo --gc --minify -b $URL # Your build command. I use Hugo in this case
# netlify.toml

[build]
  command = "chmod +x ./build.sh && ./build.sh"

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dbinetti
Comment options

Answer selected by dbinetti
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants