What generate-sitemap does
When writing an XML sitemap it fills the lastmod tag from each file's last commit date, falling back to the current date for files created during the run but not yet committed. Sitemap membership is filtered: html files carrying a robots noindex meta tag are dropped, URLs matched by Disallow rules for User-agent: * in a root robots.txt are dropped, and caller supplied directories or files can be excluded. Entries are sorted by directory depth then alphabetically.
Key features
- XML and TXT sitemaps
- Choose between an XML sitemap and a plain text sitemap using one of the action's inputs.
- Lastmod from commit dates
- Uses each file's last commit date for the lastmod tag, falling back to the current date for uncommitted new files.
- HTML and PDF defaults
- Includes URLs for html and pdf files by default, with inputs to control which file types are included.
- Extra file extensions
- Adds URLs for a user specified list of additional file extensions beyond the default html and pdf set.
- Noindex meta exclusion
- Checks html file content for a robots noindex meta tag and leaves matching pages out of the sitemap.
- robots.txt Disallow parsing
- Parses a robots.txt at the site root and excludes URLs matching Disallow rules for User-agent: *.
- Directory and file exclusions
- Accepts a list of directories or specific files to omit from the generated sitemap.
- Consistent entry sorting
- Sorts URLs by directory depth first, then alphabetically among pages at the same depth.
- Index.html URL handling
- Uses the enclosing directory as the preferred URL for index.html files instead of the full file name.
How it works
- Check out the repository in a workflow, with full history so commit dates are available
- Add the generate-sitemap action as a step in the GitHub Actions workflow
- Set inputs to pick xml or txt output and which file types to include
- Optionally pass directories, files, or extra file extensions to filter the output
- Run the workflow and the action writes the sitemap for the GitHub Pages site
Plans and pricing
Free to use under the MIT license; no paid tiers are listed.
Integrations and platforms
Works with
- GitHub Actions
- GitHub Pages
Available as
- Web
Repository facts
- Repositorycicirello/generate-sitemap
- LanguagePython
- Stars113
- Forks17
- LicenceMIT
- Created2020-07-31
- Last commit2026-11-18
- Open issues2
- actions
- github-actions
- github-pages
- html
- lastmod
- noindex
- robots
- robots-exclusion-protocol
- site
- sitemap
Services and details
Does SEO work itself
YesFree plan or free tools
Yes
No information yet on keyword research, content optimization, writes content with AI, technical audits, rank tracking, backlinks and link building, local SEO, AI search visibility, free trial, API or MCP server, WordPress plugin, browser extension, built for agencies. The website did not say; check with the vendor.
About the company
- Company cicirello
- Website: github.com/cicirello/generate-sitemap
Listing compiled from public sources and the product's own website. Last updated 2026-11-12. Report a correction or request removal. Back to GitHub repos.