• Verified
  • Free plan

generate-sitemap

Listed under GitHub repos

generate-sitemap is an open source GitHub Action that builds an xml or txt sitemap for a website hosted on GitHub Pages, using commit dates for lastmod tags. It is free under an MIT license.

Used for

  • sitemap generation
  • github pages seo
  • noindex page exclusion

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

  1. Check out the repository in a workflow, with full history so commit dates are available
  2. Add the generate-sitemap action as a step in the GitHub Actions workflow
  3. Set inputs to pick xml or txt output and which file types to include
  4. Optionally pass directories, files, or extra file extensions to filter the output
  5. 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

    Yes
  • Free 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.

Compare with other SEO tools:

About the company

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.