Update netlify.toml

This commit is contained in:
Gabriel Arazas 2022-11-27 20:08:57 +08:00
parent 54f120b962
commit ca2650eb37
2 changed files with 11 additions and 4 deletions

View File

@ -11,7 +11,7 @@ jobs:
- uses: cachix/install-nix-action@v17
with:
nix_path: nixpkgs=channel:nixpkgs-unstable
- run: nix develop -c make build
- run: nix develop
- name: Deploy to Netlify
uses: nwtgck/actions-netlify@v1.2
with:

View File

@ -1,8 +1,15 @@
[build]
publish = "public/"
command = "make build"
[context.production.environment]
HUGO_BASE_URL = "$DEPLOY_URL"
[context.branch-deploy]
command = "hugo --baseURL $DEPLOY_PRIME_URL"
[context.branch-deploy.environment]
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"
[context.deploy-preview]
command = "hugo --buildDrafts --buildFuture --buildExpired --baseURL $DEPLOY_PRIME_URL"
command = "hugo --buildDrafts --buildFuture --buildExpired"
[context.deploy-preview.environment]
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"