Skip to content

Commit 50b4310

Browse files
committed
update netlify deploy
* improve preview feedback to provide more output * add `site.min.css` symbolic link for archived sites Signed-off-by: Toshaan Bharvani <[email protected]>
1 parent 059971a commit 50b4310

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

bin/netlify-production.sh

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# npm rebuild
1+
#!/bin/bash
2+
3+
rm -rf public/css/site.min.css
24
hugo version
3-
hugo --theme=devopsdays-theme --buildDrafts=false --baseURL="$URL/"
4-
# gulp
5+
hugo --environment=production --theme=devopsdays-theme --minify --templateMetrics --logLevel info --buildDrafts=false --baseURL="$URL/"
6+
CSSFINGERPRINTED=$(ls public/css/site.min.*.css)
7+
ln -s $(basename $CSSFINGERPRINTED) public/css/site.min.css

bin/netlify.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
#!/bin/bash
2+
3+
rm -rf public/css/site.min.css
14
hugo version
2-
hugo --theme=devopsdays-theme --buildDrafts=false --baseURL="$DEPLOY_PRIME_URL"
3-
cp bin/staging-robots.txt public/robots.txt
5+
hugo --environment=development --theme=devopsdays-theme --buildDrafts=false --templateMetrics --templateMetricsHints --printMemoryUsage --printPathWarnings --printUnusedTemplates --printI18nWarnings --logLevel debug --baseURL="$DEPLOY_PRIME_URL"
6+
cp bin/staging-robots.txt public/robots.txt
7+
CSSFINGERPRINTED=$(ls public/css/site.min.*.css)
8+
ln -s $(basename $CSSFINGERPRINTED) public/css/site.min.css

0 commit comments

Comments
 (0)