Update index.html #30
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
| # .github/workflows/sitemap.yml | |
| name: Generate Sitemap | |
| # 1) Explicitly grant write permissions for contents (so “add-and-commit” can push) | |
| permissions: | |
| contents: write | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| sitemap: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # 2) Check out the repo | |
| - uses: actions/checkout@v4 | |
| # 3) Generate sitemap | |
| - name: Generate sitemap | |
| uses: cicirello/generate-sitemap@v1.10.0 | |
| with: | |
| base-url-path: https://nera-w.com/ | |
| # 4) Commit sitemap.xml back (now that GITHUB_TOKEN has write perms) | |
| - name: Commit sitemap.xml | |
| uses: EndBug/add-and-commit@v7 | |
| with: | |
| add: 'sitemap.xml' | |
| message: 'chore: update sitemap' | |
| author_name: 'github-actions[bot]' | |
| author_email: 'github-actions[bot]@users.noreply.github.com' |