Merge pull request #28 from JIAZIYI007/README #17
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 生成 Sitemap | |
# GitHub Actiion DuckDuckStudio/Sitemap_Creator 版本 1.0.4 示例工作流 | |
# https://github.com/marketplace/actions/sitemap-creator-stable | |
# Under the [GNU Affero General Public License v3.0](https://github.com/DuckDuckStudio/Sitemap_Creator/blob/main/LICENSE) | |
on: | |
push: | |
branches: | |
- main | |
# 当 main 分支上有新推送且以下文件被更改时 | |
paths: | |
- '**/*.html' | |
- '**/*.md' | |
workflow_dispatch: # 手动运行 | |
jobs: | |
generate_sitemap: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 更新网站地图 | |
uses: DuckDuckStudio/Sitemap_Creator@1.0.4 | |
with: | |
location: "sitemap.xml" | |
basic_link: "https://jiaziyi007.github.io" | |
file_type: "html" | |
ignore_file: "gb2312.html,login,web-comment" | |
website_path: "./" | |
label: "Sitemap Creator" | |
debug: true # 启用调试输出 |