Create sitemap txt.yml

This commit is contained in:
Boof 2022-12-11 16:01:22 +01:00 committed by GitHub
parent 7fb5c03ff6
commit 02bbeafa9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

45
.github/workflows/sitemap txt.yml vendored Normal file
View File

@ -0,0 +1,45 @@
name: Generate xml sitemap
on:
push:
branches: [ main ]
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap
steps:
- name: Checkout the repo
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://boof.eu.org/
path-to-root: .
sitemap-format: txt
additional-extensions: doc docx ppt pptx txt md exe lua py zip rar *
- name: Output stats
run: |
echo "sitemap-path = ${{ steps.sitemap.outputs.sitemap-path }}"
echo "url-count = ${{ steps.sitemap.outputs.url-count }}"
echo "excluded-count = ${{ steps.sitemap.outputs.excluded-count }}"
- name: Create Pull Request
uses: peter-evans/create-pull-request@v4.2.3
with:
title: "Automated sitemap update"
body: >
Automated changes. Sitemap updated by
the [generate-sitemap](https://github.com/cicirello/generate-sitemap)
GitHub action.
commit-message: "Automated sitemap update."
author: Vincent A. Cicirello <cicirello@users.noreply.github.com>
committer: Vincent A. Cicirello <cicirello@users.noreply.github.com>
branch: games/main
delete-branch: true