Skip to content

fix(lighthouse): audit index and privacy pages and optimize web font … #3

fix(lighthouse): audit index and privacy pages and optimize web font …

fix(lighthouse): audit index and privacy pages and optimize web font … #3

name: Generate xml sitemap
on:
push:
branches: [ main ]
schedule:
- cron: '0 5 * * *'
workflow_dispatch:
permissions:
contents: write
jobs:
sitemap_job:
runs-on: ubuntu-latest
name: Generate a sitemap
steps:
- name: Checkout the repo
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Generate the sitemap
id: sitemap
uses: cicirello/generate-sitemap@v1
with:
base-url-path: 'https://climbstack.github.io'
drop-html-extension: false
- name: Commit and push
run: |
if [[ `git status --porcelain sitemap.xml` ]]; then
git config --global user.name 'GitHub Actions'
git config --global user.email 'actions@github.com'
git add sitemap.xml
git commit -m "Automated sitemap update"
git push
fi