mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-02-07 09:19:00 +00:00
Add netlify.toml
This commit is contained in:
parent
d17e66e0b4
commit
54f120b962
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
@ -16,6 +16,7 @@ jobs:
|
||||
uses: nwtgck/actions-netlify@v1.2
|
||||
with:
|
||||
publish-dir: ./public
|
||||
netlify-config-path: ./netlify.toml
|
||||
production-branch: master
|
||||
production-deploy: ${{ github.ref_name == 'master' }}
|
||||
github-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
8
netlify.toml
Normal file
8
netlify.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[context.production.environment]
|
||||
HUGO_BASE_URL = "$DEPLOY_URL"
|
||||
|
||||
[context.branch-deploy]
|
||||
command = "hugo --baseURL $DEPLOY_PRIME_URL"
|
||||
|
||||
[context.deploy-preview]
|
||||
command = "hugo --buildDrafts --buildFuture --buildExpired --baseURL $DEPLOY_PRIME_URL"
|
Loading…
Reference in New Issue
Block a user