Skip to content

Update index.html

Update index.html #255

name: Generate XML Sitemap
on:
push:
branches: [ main ]
jobs:
generate-sitemap:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate Sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: https://reflecthub.github.io/
exclude-paths: legacy/,Contact/,response/
- name: Commit and Push Sitemap
run: |
if [[ `git status --porcelain sitemap.xml` ]]; then
git config --global user.name 'github-actions'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add sitemap.xml
git commit -m "Add generated sitemap"
git push
fi