Skip to content

Commit 5c419c1

Browse files
committed
fix(ci): Clear Hugo cache before build:
- When building in CircleCI, the previous Hugo config changes prevents Hugo finding previously processed CSS in the file cache. Clean up the cache before building.
1 parent f908bab commit 5c419c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
- /home/circleci/bin
4242
- run:
4343
name: Hugo Build
44-
command: npx hugo --config config/production/config.yml --logLevel info --minify --destination workspace/public
44+
command: npx hugo --config config/production/config.yml --logLevel info --minify --gc --destination workspace/public
4545
- persist_to_workspace:
4646
root: workspace
4747
paths:

0 commit comments

Comments
 (0)