-
Notifications
You must be signed in to change notification settings - Fork 14
/
netlify.toml
14 lines (12 loc) · 1.47 KB
/
netlify.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Production context:
# All deploys from the main repository branch
# will inherit these settings.
[context.production]
command = 'export PERCY_TOKEN=$percy;mkdir cheatsheets;mv !(cheatsheets) cheatsheets;git clone https://github.com/glazec/hexo-cheatsheets-demo.git;rm hexo-cheatsheets-demo/themes/cheatsheets -r;mv cheatsheets hexo-cheatsheets-demo/themes/;cd hexo-cheatsheets-demo;npm install;grep themes/cheatsheets/layout/_partial/head.ejs;npx hexo generate;npx percy snapshot public/ --ignore-files "public/categories/**,public/archives/**"'
publish = "hexo-cheatsheets-demo/public"
[context.deploy-preview]
command = 'export PERCY_TOKEN=$percy;mkdir cheatsheets;mv !(cheatsheets) cheatsheets;git clone https://github.com/glazec/hexo-cheatsheets-demo.git;rm hexo-cheatsheets-demo/themes/cheatsheets -r;mv cheatsheets hexo-cheatsheets-demo/themes/;cd hexo-cheatsheets-demo;npm install;npx hexo generate;npx percy snapshot public/ --ignore-files "public/categories/**,public/archives/**"'
publish = "hexo-cheatsheets-demo/public"
[context.branch-deploy]
command = 'export PERCY_TOKEN=$percy;mkdir cheatsheets;mv !(cheatsheets) cheatsheets;git clone https://github.com/glazec/hexo-cheatsheets-demo.git;rm hexo-cheatsheets-demo/themes/cheatsheets -r;mv cheatsheets hexo-cheatsheets-demo/themes/;cd hexo-cheatsheets-demo;npm install;npx hexo generate;npx percy snapshot public/ --ignore-files "public/categories/**,public/archives/**"'
publish = "hexo-cheatsheets-demo/public"