Skip to content

Merge branch 'gh-pages' of github.com:pyansys/pymapdl into gh-pages #2

Merge branch 'gh-pages' of github.com:pyansys/pymapdl into gh-pages

Merge branch 'gh-pages' of github.com:pyansys/pymapdl into gh-pages #2

Workflow file for this run

name: Build Sitemap
on:
push:
branches:
- gh-pages
pull_request:
branches:
- gh-pages
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sitemap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Generate the sitemap
run: python gen-sitemap.py
- name: Configure Git user
run: |
git config user.name "GitHub Actions"
git config user.email "noreply@example.com"
- name: Commit and push the updated sitemap
run: |
git add sitemap.xml
git commit -m "Update sitemap [skip ci]" || true
git push