mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-12 03:19:00 +00:00
Update netlify.toml
This commit is contained in:
parent
54f120b962
commit
ca2650eb37
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
- uses: cachix/install-nix-action@v17
|
- uses: cachix/install-nix-action@v17
|
||||||
with:
|
with:
|
||||||
nix_path: nixpkgs=channel:nixpkgs-unstable
|
nix_path: nixpkgs=channel:nixpkgs-unstable
|
||||||
- run: nix develop -c make build
|
- run: nix develop
|
||||||
- name: Deploy to Netlify
|
- name: Deploy to Netlify
|
||||||
uses: nwtgck/actions-netlify@v1.2
|
uses: nwtgck/actions-netlify@v1.2
|
||||||
with:
|
with:
|
||||||
|
13
netlify.toml
13
netlify.toml
@ -1,8 +1,15 @@
|
|||||||
|
[build]
|
||||||
|
publish = "public/"
|
||||||
|
command = "make build"
|
||||||
|
|
||||||
[context.production.environment]
|
[context.production.environment]
|
||||||
HUGO_BASE_URL = "$DEPLOY_URL"
|
HUGO_BASE_URL = "$DEPLOY_URL"
|
||||||
|
|
||||||
[context.branch-deploy]
|
[context.branch-deploy.environment]
|
||||||
command = "hugo --baseURL $DEPLOY_PRIME_URL"
|
HUGO_BASE_URL = "$DEPLOY_PRIME_URL"
|
||||||
|
|
||||||
[context.deploy-preview]
|
[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"
|
||||||
|
Loading…
Reference in New Issue
Block a user