Skip to content

Commit

Permalink
ci: update preview workflow to modify developer and CDN settings
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanNotFound committed May 29, 2024
1 parent 210781b commit d69e8b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,13 @@ jobs:
config = yaml.safe_load(file)
logging.info('YAML file loaded successfully.')
# Modify the developer mode setting
# Modify the developer mode and CDN settings
config['developer']['enable'] = True
logging.info('Developer mode set to True.')
config['cdn']['enable'] = False
logging.info('CDN set to False.')
# Save the modified YAML file
with open('hexo-site/_config.redefine.yml', 'w') as file:
yaml.safe_dump(config, file, default_flow_style=False, sort_keys=False)
Expand Down

0 comments on commit d69e8b5

Please sign in to comment.