Add netlify.toml

This commit is contained in:
Gabriel Arazas 2022-11-27 18:56:32 +08:00
parent d17e66e0b4
commit 54f120b962
2 changed files with 9 additions and 0 deletions

View File

@ -16,6 +16,7 @@ jobs:
uses: nwtgck/actions-netlify@v1.2 uses: nwtgck/actions-netlify@v1.2
with: with:
publish-dir: ./public publish-dir: ./public
netlify-config-path: ./netlify.toml
production-branch: master production-branch: master
production-deploy: ${{ github.ref_name == 'master' }} production-deploy: ${{ github.ref_name == 'master' }}
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}

8
netlify.toml Normal file
View 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"