Update index.html #255
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: 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 |