Skip to content

Commit ac49889

Browse files
authored
[SITE] update netlify deploy (#15615)
1 parent 7e36f68 commit ac49889

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

bin/netlify-production.sh

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

bin/netlify.sh

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

0 commit comments

Comments
 (0)