移除过时的 WSL 文章 (#217) #137
This file contains hidden or 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.2 示例工作流 | |
| # https://github.com/marketplace/actions/sitemap-creator-pre-release | |
| # 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: # 手动运行 | |
| # 相关文档: https://docs.github.com/zh/actions/writing-workflows/choosing-what-your-workflow-does/controlling-permissions-for-github_token | |
| permissions: | |
| contents: write # 允许修改仓库内容,例如提交、发行版等 | |
| pull-requests: write # 允许创建和修改 PR,如果您使用更新方式“提交”可以不给这个权限 | |
| jobs: | |
| generate_sitemap: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 更新网站地图 | |
| uses: DuckDuckStudio/Sitemap_Creator@7e77c95ddeafa1851c1c092c3a2019c64517ab4f # 2.0.2 | |
| with: | |
| location: "docs/sitemap.xml" | |
| basic_link: "https://duckduckstudio.github.io/Articles/#" # docsify 部署的 | |
| ignore_file: "_Footer.md,404.html,某鸭的文章页面模板.html,营销号" | |
| website_path: "docs" | |
| label: "DEV-已启用自动合并,工作流,DEV-开发分支合并" | |
| auto_merge: "压缩合并" | |
| debug: true # 启用调试输出 | |
| # 其他参数默认 | |
| # base_branch: "main" | |
| # file_type: "html,md" | |
| # token: ${{ github.token }} | |
| # timezone: "Asia/Shanghai" | |
| # update: "拉取请求" | |
| # reviewer: |