hewking's blog
Author: hewking
Labels: blog
Created: 2024-12-01T05:02:20Z
Link and comments: https://github.com/hewking/blog/issues/9
配置 github workflow/ main.yml, 执行action 如果无法访问创建 pull-request 需要在项目中进行设置
# 基础配置
title: Your Blog Title
description: Your blog description
theme: jekyll-theme-minimal # 或其他主题
# Jekyll 设置
markdown: kramdown
kramdown:
input: GFM
syntax_highlighter: rouge
# 可选:排除不需要处理的文件
exclude:
- generate.py
- README.md
- .github/
这样设置后,每次 PR merge 到主分支,GitHub 会自动: 检测到 markdown 文件变化 用 Jekyll 构建站点 部署到 GitHub Pages 不需要额外的 workflow 文件,GitHub 会自动处理构建和部署。在 actions 中会生成 workflow: pages-build-deployment