feat(environment): use hugo.Environment to judge the production environment

This commit is contained in:
Dillon
2020-03-02 17:03:35 +08:00
parent f83b1c14c8
commit 285efc01bb
5 changed files with 3 additions and 19 deletions

View File

@@ -8,7 +8,7 @@ jobs:
- checkout
- run: git submodule sync
- run: git submodule update --init
- run: HUGO_ENV=production hugo --source=exampleSite -v --gc
- run: hugo --source=exampleSite -v --gc
- run: htmlproofer exampleSite/public --check-html --allow-hash-href --empty-alt-ignore --disable-external
workflows: